mb/intel/mtlrvp: define a new config for Chrome EC

Introduce new config MTL_CHROME_EC_SHARED_SPI, tailored for
Chrome ECs utilizing an external shared SPI flash.

BUG=b:289783489
TEST=emerge-rex coreboot chromeos-bootimage is successful

Cq-Depend: chrome-internal:6691498
Cq-Depend: chrome-internal:6741356
Change-Id: I462c34c5adaefa37c652de293152243c58bad7c5
Signed-off-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79824
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <ericllai@google.com>
This commit is contained in:
Deepti Deshatty 2024-01-04 16:31:50 +05:30 committed by Felix Held
parent 264f86526d
commit 315251d5cc
1 changed files with 7 additions and 2 deletions

View File

@ -107,7 +107,8 @@ config DIMM_SPD_SIZE
choice choice
prompt "ON BOARD EC" prompt "ON BOARD EC"
default MTL_INTEL_EC if BOARD_INTEL_MTLRVP_P default MTL_INTEL_EC if BOARD_INTEL_MTLRVP_P
default MTL_CHROME_EC if BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP_P_MCHP || BOARD_INTEL_MTLRVP4ES_P_EXT_EC default MTL_CHROME_EC if BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP4ES_P_EXT_EC
default MTL_CHROME_EC_SHARED_SPI if BOARD_INTEL_MTLRVP_P_MCHP
help help
This option allows you to select the on board EC to use. This option allows you to select the on board EC to use.
Select whether the board has Intel EC or/and Chrome EC Select whether the board has Intel EC or/and Chrome EC
@ -115,6 +116,10 @@ choice
config MTL_CHROME_EC config MTL_CHROME_EC
bool "Chrome EC with Internal SPI flash" bool "Chrome EC with Internal SPI flash"
config MTL_CHROME_EC_SHARED_SPI
bool "Chrome EC with External Shared SPI flash"
select MAINBOARD_USES_IFD_EC_REGION
config MTL_INTEL_EC config MTL_INTEL_EC
bool "Intel EC" bool "Intel EC"
select EC_ACPI select EC_ACPI
@ -122,7 +127,7 @@ endchoice
config VBOOT config VBOOT
select VBOOT_LID_SWITCH select VBOOT_LID_SWITCH
select EC_GOOGLE_CHROMEEC_SWITCHES if MTL_CHROME_EC select EC_GOOGLE_CHROMEEC_SWITCHES if MTL_CHROME_EC || MTL_CHROME_EC_SHARED_SPI
config UART_FOR_CONSOLE config UART_FOR_CONSOLE
int int