summaryrefslogtreecommitdiff
path: root/src/mainboard/google/herobrine/Kconfig
diff options
context:
space:
mode:
authorShelley Chen <shchen@google.com>2022-01-05 17:15:31 -0800
committerShelley Chen <shchen@google.com>2022-01-07 22:27:37 +0000
commit3538461468aa7b0b14e1c76e09f6104a3e551b4a (patch)
tree5c84bf46cde001e1b96881f25f12abc27431f9cd /src/mainboard/google/herobrine/Kconfig
parentf00680afc5df34bdc40fc7d1c43b4f1aa812fa13 (diff)
mb/google/herobrine: Initialize EC and TPM devices
Initialize EC and H1/TPM instances on herobrine devices. BUG=b:182963902 BRANCH=None TEST=Validated on qualcomm sc7280 development board and verified booting on herobrine. Change-Id: I8cbdd1d59a0166688d52d61646db1b6764879a7c Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50581 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard/google/herobrine/Kconfig')
-rw-r--r--src/mainboard/google/herobrine/Kconfig24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/mainboard/google/herobrine/Kconfig b/src/mainboard/google/herobrine/Kconfig
index 5c7183f460..511e4cb297 100644
--- a/src/mainboard/google/herobrine/Kconfig
+++ b/src/mainboard/google/herobrine/Kconfig
@@ -5,7 +5,7 @@ if BOARD_GOOGLE_HEROBRINE_COMMON
config HEROBRINE_HAS_FINGERPRINT
bool
- default y if BOARD_GOOGLE_HEROBRINE
+ default y if BOARD_GOOGLE_HEROBRINE || BOARD_GOOGLE_HEROBRINE_REV0
default n
config BOARD_SPECIFIC_OPTIONS
@@ -24,7 +24,8 @@ config BOARD_SPECIFIC_OPTIONS
select SPI_FLASH_WINBOND
select SPI_FLASH_MACRONIX
select MAINBOARD_HAS_CHROMEOS
- select MAINBOARD_HAS_SPI_TPM_CR50 if !BOARD_GOOGLE_SENOR
+ select MAINBOARD_HAS_SPI_TPM_CR50 if BOARD_GOOGLE_PIGLIN || BOARD_GOOGLE_HOGLIN
+ select MAINBOARD_HAS_I2C_TPM_CR50 if BOARD_GOOGLE_HEROBRINE_REV0 || BOARD_GOOGLE_HEROBRINE
select MAINBOARD_HAS_TPM2 if !BOARD_GOOGLE_SENOR
config VBOOT
@@ -52,4 +53,23 @@ config MAINBOARD_PART_NUMBER
default "Piglin" if BOARD_GOOGLE_PIGLIN
default "Hoglin" if BOARD_GOOGLE_HOGLIN
+config DRIVER_TPM_I2C_BUS
+ depends on MAINBOARD_HAS_I2C_TPM_CR50
+ hex
+ default 0xC if BOARD_GOOGLE_HEROBRINE_REV0
+ default 0xE
+
+config DRIVER_TPM_I2C_ADDR
+ default 0x50
+
+config DRIVER_TPM_SPI_BUS
+ depends on MAINBOARD_HAS_SPI_TPM_CR50
+ hex
+ default 0xE
+
+config EC_GOOGLE_CHROMEEC_SPI_BUS
+ hex
+ default 0x8 if BOARD_GOOGLE_HEROBRINE_REV0
+ default 0xA
+
endif # BOARD_GOOGLE_HEROBRINE_COMMON