From 156a63881f4294d320a8ceeac6c8d8fa1ef37566 Mon Sep 17 00:00:00 2001 From: Tristan Shieh Date: Fri, 19 Oct 2018 11:58:52 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/29190 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin --- src/mainboard/google/kukui/Kconfig | 3 +++ src/mainboard/google/kukui/chromeos.c | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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; -- cgit v1.2.3