summaryrefslogtreecommitdiff
path: root/zephyr/projects/guybrush
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/guybrush')
-rw-r--r--zephyr/projects/guybrush/include/gpio_map.h5
-rw-r--r--zephyr/projects/guybrush/prj.conf5
2 files changed, 7 insertions, 3 deletions
diff --git a/zephyr/projects/guybrush/include/gpio_map.h b/zephyr/projects/guybrush/include/gpio_map.h
index fc5c3f4cbb..4cabdfce94 100644
--- a/zephyr/projects/guybrush/include/gpio_map.h
+++ b/zephyr/projects/guybrush/include/gpio_map.h
@@ -24,7 +24,8 @@
* #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)
+#define EC_CROS_GPIO_INTERRUPTS \
+ GPIO_INT(GPIO_LID_OPEN, GPIO_INT_EDGE_BOTH, lid_interrupt) \
+ GPIO_INT(GPIO_AC_PRESENT, GPIO_INT_EDGE_BOTH, extpower_interrupt)
#endif /* __ZEPHYR_GPIO_MAP_H */
diff --git a/zephyr/projects/guybrush/prj.conf b/zephyr/projects/guybrush/prj.conf
index abd7f858d3..bc4667937a 100644
--- a/zephyr/projects/guybrush/prj.conf
+++ b/zephyr/projects/guybrush/prj.conf
@@ -16,7 +16,10 @@ CONFIG_PLATFORM_EC_POWER_BUTTON=n
CONFIG_HAS_TASK_POWERBTN=n
# External power
-CONFIG_PLATFORM_EC_EXTPOWER_GPIO=n
+CONFIG_PLATFORM_EC_HOSTCMD=y
+CONFIG_PLATFORM_EC_EXTPOWER_GPIO=y
+CONFIG_PLATFORM_EC_BACKLIGHT_LID=n
+CONFIG_PLATFORM_EC_SWITCH=n
# Lid switch
CONFIG_PLATFORM_EC_LID_SWITCH=y