diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-02-16 14:14:13 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-17 20:51:41 +0000 |
commit | ef52b799b478d3e7f1f3782ab21abab2ceb62ad8 (patch) | |
tree | 39447d3ef69626e1e2d259b9fcbfd629a76366be | |
parent | e1e049f2f5ff181574364cb25786eefa9f92b4e7 (diff) | |
download | chrome-ec-ef52b799b478d3e7f1f3782ab21abab2ceb62ad8.tar.gz |
zephyr: delbin: enable external power detection via GPIO
Delbin uses external power detection thru acok_od GPIO. Enable the
corresponding module.
BUG=b:180410072
BRANCH=none
TEST=compile for delbin
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I577f465938625d67d14df4c4afe892b04dc75412
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2699528
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | zephyr/projects/delbin/include/gpio_map.h | 1 | ||||
-rw-r--r-- | zephyr/projects/delbin/prj.conf | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/projects/delbin/include/gpio_map.h b/zephyr/projects/delbin/include/gpio_map.h index e3cdcda1ce..302908d564 100644 --- a/zephyr/projects/delbin/include/gpio_map.h +++ b/zephyr/projects/delbin/include/gpio_map.h @@ -9,6 +9,7 @@ #include <devicetree.h> #include <gpio_signal.h> +#define GPIO_AC_PRESENT NAMED_GPIO(acok_od) #define GPIO_EC_PCH_WAKE_ODL NAMED_GPIO(ec_pch_wake_odl) #define GPIO_ENTERING_RW NAMED_GPIO(ec_entering_rw) #define GPIO_WP_L NAMED_GPIO(ec_wp_l) diff --git a/zephyr/projects/delbin/prj.conf b/zephyr/projects/delbin/prj.conf index b8bad0a939..7aba8b6dee 100644 --- a/zephyr/projects/delbin/prj.conf +++ b/zephyr/projects/delbin/prj.conf @@ -10,6 +10,8 @@ CONFIG_PLATFORM_EC_BRINGUP=y CONFIG_ESPI=y CONFIG_PLATFORM_EC_ESPI_VW_SLP_S4=y +CONFIG_PLATFORM_EC_EXTPOWER_GPIO=y + # TODO(b/180410072): bringup these features CONFIG_PLATFORM_EC_BACKLIGHT_LID=n CONFIG_PLATFORM_EC_BOARD_VERSION=n |