From 84a659bc2e49b106dfa45b962a86027515284a1e Mon Sep 17 00:00:00 2001 From: Denis Brockus Date: Thu, 13 May 2021 14:35:04 -0600 Subject: zephyr: asurada: enable lid switch AP is not running, so not a lot of testing that can happen other than see if it builds. This is required to be enabled before AP can be enabled. BUG=b:180980668 BRANCH=none TEST=zmake configure -b zephyr/projects/asurada/hayato Signed-off-by: Denis Brockus Change-Id: Ie106e3b3b086d5c68e83a19977209d12245349b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895304 Tested-by: Denis Brockus Auto-Submit: Denis Brockus Reviewed-by: Yuval Peress Commit-Queue: Yuval Peress --- zephyr/projects/asurada/hayato/include/gpio_map.h | 3 ++- zephyr/projects/asurada/hayato/prj.conf | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/zephyr/projects/asurada/hayato/include/gpio_map.h b/zephyr/projects/asurada/hayato/include/gpio_map.h index dad1d91ff7..1c9752ca6e 100644 --- a/zephyr/projects/asurada/hayato/include/gpio_map.h +++ b/zephyr/projects/asurada/hayato/include/gpio_map.h @@ -27,6 +27,7 @@ * #define EC_CROS_GPIO_INTERRUPTS \ * GPIO_INT(NAMED_GPIO(h1_ec_pwr_btn_odl), GPIO_INT_EDGE_BOTH, button_print) */ -#define EC_CROS_GPIO_INTERRUPTS +#define EC_CROS_GPIO_INTERRUPTS \ + GPIO_INT(GPIO_LID_OPEN, GPIO_INT_EDGE_BOTH, lid_interrupt) #endif /* __ZEPHYR_GPIO_MAP_H */ diff --git a/zephyr/projects/asurada/hayato/prj.conf b/zephyr/projects/asurada/hayato/prj.conf index 625b2c6a61..fc5f8120bf 100644 --- a/zephyr/projects/asurada/hayato/prj.conf +++ b/zephyr/projects/asurada/hayato/prj.conf @@ -4,9 +4,11 @@ CONFIG_CROS_EC=y CONFIG_PLATFORM_EC=y -CONFIG_PLATFORM_EC_BRINGUP=y CONFIG_SHIMMED_TASKS=y +CONFIG_PLATFORM_EC_BRINGUP=y + + # ADC Driver CONFIG_ADC_ITE_IT8XXX2=y CONFIG_PLATFORM_EC_ADC=y @@ -19,6 +21,9 @@ CONFIG_PLATFORM_EC_FLASH_CROS=y CONFIG_I2C_ITE_IT8XXX2=y CONFIG_PLATFORM_EC_I2C=y +# Lid Switch +CONFIG_PLATFORM_EC_LID_SWITCH=y + # TODO(b/180980668): bring these features up CONFIG_LTO=n CONFIG_PLATFORM_EC_BACKLIGHT_LID=n @@ -26,7 +31,6 @@ CONFIG_PLATFORM_EC_BOARD_VERSION=n CONFIG_PLATFORM_EC_CONSOLE_CMD_SYSINFO=n CONFIG_PLATFORM_EC_HOSTCMD=y CONFIG_PLATFORM_EC_KEYBOARD=n -CONFIG_PLATFORM_EC_LID_SWITCH=n CONFIG_PLATFORM_EC_SWITCH=n CONFIG_PLATFORM_EC_VBOOT=n CONFIG_PLATFORM_EC_VBOOT_HASH=n -- cgit v1.2.1