mb/google/rex: Create variant to support ISH enablement
This patch creates a new variant to support the ISH enablement using
Rex platform.The idea here is to leverage the `rex0` code as much as
possible and add specific support for ISH enablement as per the hardware
schematic differences.
BUG=b:284254353
TEST=Able to build google/rex_ish_ec board and boot on target hardware.
Change-Id: I625fd0b31aed998f4e8f2d139827bc212ee8a90b
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75470
Reviewed-by: Tarun Tuli <taruntuli@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: YH Lin <yueherngl@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig
index c95da35..ab399cb 100644
--- a/src/mainboard/google/rex/Kconfig
+++ b/src/mainboard/google/rex/Kconfig
@@ -82,12 +82,12 @@
default "Google_Rex" if BOARD_GOOGLE_BASEBOARD_REX
config MAINBOARD_PART_NUMBER
- default "Rex" if BOARD_GOOGLE_REX0
+ default "Rex" if BOARD_GOOGLE_REX0 || BOARD_GOOGLE_REX_EC_ISH
default "Screebo" if BOARD_GOOGLE_SCREEBO
config VARIANT_DIR
string
- default "rex0" if BOARD_GOOGLE_REX0
+ default "rex0" if BOARD_GOOGLE_REX0 || BOARD_GOOGLE_REX_EC_ISH
default "screebo" if BOARD_GOOGLE_SCREEBO
config DIMM_SPD_SIZE
@@ -111,7 +111,7 @@
config DRIVER_TPM_I2C_BUS
hex
- default 0x4 if BOARD_GOOGLE_REX0 || BOARD_GOOGLE_SCREEBO
+ default 0x4 if BOARD_GOOGLE_REX0 || BOARD_GOOGLE_SCREEBO || BOARD_GOOGLE_REX_EC_ISH
config DRIVER_TPM_I2C_ADDR
hex
diff --git a/src/mainboard/google/rex/Kconfig.name b/src/mainboard/google/rex/Kconfig.name
index 886a2f0..b990e31 100644
--- a/src/mainboard/google/rex/Kconfig.name
+++ b/src/mainboard/google/rex/Kconfig.name
@@ -8,3 +8,9 @@
config BOARD_GOOGLE_SCREEBO
bool "-> Screebo"
select BOARD_GOOGLE_BASEBOARD_REX
+
+config BOARD_GOOGLE_REX_EC_ISH
+ bool "-> Rex EC ISH"
+ select BOARD_GOOGLE_BASEBOARD_REX
+ select DRIVERS_GENESYSLOGIC_GL9755
+ select DRIVERS_INTEL_ISH