diff --git a/src/ec/google/chromeec/Kconfig b/src/ec/google/chromeec/Kconfig index 8e037f2496..fbd4758e71 100644 --- a/src/ec/google/chromeec/Kconfig +++ b/src/ec/google/chromeec/Kconfig @@ -222,6 +222,10 @@ config EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_BASE hex default 0xfe0b0000 +config EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_SIZE + hex + default 0x10000 + endif # EC_GOOGLE_CHROMEEC source "src/ec/google/chromeec/*/Kconfig" diff --git a/src/mainboard/google/brox/Kconfig b/src/mainboard/google/brox/Kconfig index d48b342782..a94995a168 100644 --- a/src/mainboard/google/brox/Kconfig +++ b/src/mainboard/google/brox/Kconfig @@ -63,6 +63,8 @@ config BOARD_GOOGLE_BROX_RTK_EC select BOARD_GOOGLE_BASEBOARD_BROX select CHROMEOS_WIFI_SAR if CHROMEOS select USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS + select EC_GOOGLE_CHROMEEC_RTK + select EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_RANGE config BOARD_GOOGLE_BROX_TI_PDC select BOARD_GOOGLE_BASEBOARD_BROX diff --git a/src/mainboard/google/brox/bootblock.c b/src/mainboard/google/brox/bootblock.c index 3a5f785582..31309ad411 100644 --- a/src/mainboard/google/brox/bootblock.c +++ b/src/mainboard/google/brox/bootblock.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -25,6 +26,10 @@ void bootblock_mainboard_init(void) board_reset(); } variant_update_descriptor(); + + if (CONFIG(EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_RANGE)) + lpc_open_mmio_window(CONFIG_EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_BASE, + CONFIG_EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_SIZE); } void __weak variant_update_descriptor(void) {}