summaryrefslogtreecommitdiff
path: root/zephyr/projects/npcx_evb/npcx9
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/npcx_evb/npcx9')
-rw-r--r--zephyr/projects/npcx_evb/npcx9/gpio.dts1
-rw-r--r--zephyr/projects/npcx_evb/npcx9/include/gpio_map.h3
-rw-r--r--zephyr/projects/npcx_evb/npcx9/prj.conf1
3 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/projects/npcx_evb/npcx9/gpio.dts b/zephyr/projects/npcx_evb/npcx9/gpio.dts
index 1f41a4dcbe..c4031dd83f 100644
--- a/zephyr/projects/npcx_evb/npcx9/gpio.dts
+++ b/zephyr/projects/npcx_evb/npcx9/gpio.dts
@@ -26,6 +26,7 @@
};
lid_open {
gpios = <&gpioa 6 (GPIO_INPUT | GPIO_PULL_DOWN)>;
+ enum-name = "GPIO_LID_OPEN";
label = "LID_OPEN";
};
entering_rw {
diff --git a/zephyr/projects/npcx_evb/npcx9/include/gpio_map.h b/zephyr/projects/npcx_evb/npcx9/include/gpio_map.h
index 025bb78743..944a7e9760 100644
--- a/zephyr/projects/npcx_evb/npcx9/include/gpio_map.h
+++ b/zephyr/projects/npcx_evb/npcx9/include/gpio_map.h
@@ -24,6 +24,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/npcx_evb/npcx9/prj.conf b/zephyr/projects/npcx_evb/npcx9/prj.conf
index 7be8dfacea..ec1e590d6b 100644
--- a/zephyr/projects/npcx_evb/npcx9/prj.conf
+++ b/zephyr/projects/npcx_evb/npcx9/prj.conf
@@ -5,6 +5,7 @@
CONFIG_CROS_EC=y
CONFIG_PLATFORM_EC=y
CONFIG_PLATFORM_EC_BRINGUP=y
+CONFIG_PLATFORM_EC_LID_SWITCH=y
CONFIG_SHIMMED_TASKS=y
CONFIG_CROS_KB_RAW_NPCX=n