summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-09-17 13:32:02 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-17 23:51:03 +0000
commit96a9ffe99bdaf600ae6f93ee97ee4534f3b3b170 (patch)
tree21807751d2b2b226563086d60950462c60d6614e /zephyr
parent5c919f98f689fa30ae5ca0c31540d23edbaf8b96 (diff)
downloadchrome-ec-96a9ffe99bdaf600ae6f93ee97ee4534f3b3b170.tar.gz
zephyr: guybrush: Enable extpower gpio detection
Bring up GPIOs for ACOK, and wire the interrupts. Note we needed to set certain Kconfigs to n due to incorrectly specified defaults. BUG=b:195137794 BRANCH=none TEST=compiles Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I64f935895a74a5df2dbcd1122623788f91ef89fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3169198 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'zephyr')
-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