diff options
author | Tristan Shieh <tristan.shieh@mediatek.com> | 2018-10-19 11:58:52 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-10-25 09:22:12 +0000 |
commit | 156a63881f4294d320a8ceeac6c8d8fa1ef37566 (patch) | |
tree | ddebbcf21f280b10660ec6934c838dc33556b847 /src/mainboard/google | |
parent | cf04c61170dc8efb5f94aa31d441312479bed10e (diff) |
google/kukui: Support recovery mode
Get recovery mode switch from EC and pass it to payload.
BUG=b:80501386
BRANCH=none
Test: Boots correctly on Kukui.
Change-Id: Ib92afca885e5a97ec4646f55f2279ef56a61af5a
Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com>
Reviewed-on: https://review.coreboot.org/29190
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/kukui/Kconfig | 3 | ||||
-rw-r--r-- | src/mainboard/google/kukui/chromeos.c | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/mainboard/google/kukui/Kconfig b/src/mainboard/google/kukui/Kconfig index 9e0146413c..7032d674b8 100644 --- a/src/mainboard/google/kukui/Kconfig +++ b/src/mainboard/google/kukui/Kconfig @@ -1,6 +1,7 @@ if BOARD_GOOGLE_KUKUI config VBOOT + select EC_GOOGLE_CHROMEEC_SWITCHES select VBOOT_MOCK_SECDATA config BOARD_SPECIFIC_OPTIONS @@ -12,6 +13,8 @@ config BOARD_SPECIFIC_OPTIONS select SPI_FLASH select FATAL_ASSERTS select SPI_FLASH_INCLUDE_ALL_DRIVERS + select EC_GOOGLE_CHROMEEC + select EC_GOOGLE_CHROMEEC_SPI config MAINBOARD_DIR string diff --git a/src/mainboard/google/kukui/chromeos.c b/src/mainboard/google/kukui/chromeos.c index bb14b1cc70..ace99bc11e 100644 --- a/src/mainboard/google/kukui/chromeos.c +++ b/src/mainboard/google/kukui/chromeos.c @@ -28,17 +28,13 @@ void setup_chromeos_gpios(void) void fill_lb_gpios(struct lb_gpios *gpios) { struct lb_gpio chromeos_gpios[] = { + {-1, ACTIVE_HIGH, get_recovery_mode_switch(), "recovery"}, {EC_IN_RW.id, ACTIVE_HIGH, -1, "EC in RW"}, {EC_IRQ.id, ACTIVE_LOW, -1, "EC interrupt"}, }; lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios)); } -int get_recovery_mode_switch(void) -{ - return 0; -} - int get_write_protect_state(void) { return 0; |