diff options
author | Denis Brockus <dbrockus@google.com> | 2021-05-13 14:35:04 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-17 20:39:35 +0000 |
commit | 84a659bc2e49b106dfa45b962a86027515284a1e (patch) | |
tree | 337948fe2f1c4fc6d105e9dcbff2bb3714c001ec | |
parent | d68b42b8495c524e9966faf28e6666400e840264 (diff) | |
download | chrome-ec-84a659bc2e49b106dfa45b962a86027515284a1e.tar.gz |
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 <dbrockus@google.com>
Change-Id: Ie106e3b3b086d5c68e83a19977209d12245349b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895304
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Commit-Queue: Yuval Peress <peress@chromium.org>
-rw-r--r-- | zephyr/projects/asurada/hayato/include/gpio_map.h | 3 | ||||
-rw-r--r-- | 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 |