summaryrefslogtreecommitdiff
path: root/zephyr/projects/it8xxx2_evb/include/gpio_map.h
diff options
context:
space:
mode:
authortim <tim2.lin@ite.corp-partner.google.com>2021-04-29 11:00:21 +0800
committerCommit Bot <commit-bot@chromium.org>2021-04-30 16:09:59 +0000
commit88ac4884925fa740dd8745eed580557208ae24ae (patch)
tree58bea6ee58b97752338317da256a9fbaaee5e3ea /zephyr/projects/it8xxx2_evb/include/gpio_map.h
parente2be949ac4712a721c6b635c069a550a7fe6f1e4 (diff)
downloadchrome-ec-88ac4884925fa740dd8745eed580557208ae24ae.tar.gz
zephyr: it8xxx2_evb: enable lid switch
Enable the lid switch GPIO and module. BUG=b:185202623 BRANCH=none TEST=trigger GPIO_LID_OPEN, observe UART prints [21.986000 event set 0x0000000000000001] [22.374000 lid open] [22.378000 event set 0x0000000000000002] [23.265000 lid close] Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com> Change-Id: Ib7121240309a02de9ee7c342ff7c6005d5fa522b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2850300 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/it8xxx2_evb/include/gpio_map.h')
-rw-r--r--zephyr/projects/it8xxx2_evb/include/gpio_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/projects/it8xxx2_evb/include/gpio_map.h b/zephyr/projects/it8xxx2_evb/include/gpio_map.h
index 1305e59e71..1140fe9465 100644
--- a/zephyr/projects/it8xxx2_evb/include/gpio_map.h
+++ b/zephyr/projects/it8xxx2_evb/include/gpio_map.h
@@ -27,5 +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 \
+ GPIO_INT(GPIO_LID_OPEN, GPIO_INT_EDGE_BOTH, lid_interrupt)
#endif /* __ZEPHYR_GPIO_MAP_H */