diff options
-rw-r--r-- | zephyr/projects/delbin/include/gpio_map.h | 5 | ||||
-rw-r--r-- | zephyr/projects/delbin/prj.conf | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/zephyr/projects/delbin/include/gpio_map.h b/zephyr/projects/delbin/include/gpio_map.h index 87ea6b3c54..528a9e5713 100644 --- a/zephyr/projects/delbin/include/gpio_map.h +++ b/zephyr/projects/delbin/include/gpio_map.h @@ -13,6 +13,7 @@ #define GPIO_EC_PCH_WAKE_ODL NAMED_GPIO(ec_pch_wake_odl) #define GPIO_ENTERING_RW NAMED_GPIO(ec_entering_rw) #define GPIO_LID_OPEN NAMED_GPIO(ec_lid_open) +#define GPIO_POWER_BUTTON_L NAMED_GPIO(h1_ec_pwr_btn_odl) #define GPIO_WP_L NAMED_GPIO(ec_wp_l) /* @@ -32,6 +33,8 @@ */ #define EC_CROS_GPIO_INTERRUPTS \ GPIO_INT(GPIO_AC_PRESENT, GPIO_INT_EDGE_BOTH, extpower_interrupt) \ - GPIO_INT(GPIO_LID_OPEN, GPIO_INT_EDGE_BOTH, lid_interrupt) + GPIO_INT(GPIO_LID_OPEN, GPIO_INT_EDGE_BOTH, lid_interrupt) \ + GPIO_INT(GPIO_POWER_BUTTON_L, GPIO_INT_EDGE_BOTH, \ + power_button_interrupt) #endif /* __ZEPHYR_GPIO_MAP_H */ diff --git a/zephyr/projects/delbin/prj.conf b/zephyr/projects/delbin/prj.conf index 0644eca499..545ef3c136 100644 --- a/zephyr/projects/delbin/prj.conf +++ b/zephyr/projects/delbin/prj.conf @@ -12,6 +12,7 @@ CONFIG_PLATFORM_EC_ESPI_VW_SLP_S4=y CONFIG_PLATFORM_EC_EXTPOWER_GPIO=y CONFIG_PLATFORM_EC_LID_SWITCH=y +CONFIG_PLATFORM_EC_POWER_BUTTON=y # TODO(b/180410072): bringup these features CONFIG_PLATFORM_EC_BACKLIGHT_LID=n |