diff options
author | Ting Shen <phoenixshen@google.com> | 2019-07-25 20:10:01 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-09 06:47:43 +0000 |
commit | 60c0372ba770590333f164c4066ee068c6a4f93d (patch) | |
tree | 1b544eb677b5477b57c3325a6a8c316365758df7 /board/jacuzzi/board.h | |
parent | 54eed312a6a95a54ffc7630596962e5c91e7d7e7 (diff) | |
download | chrome-ec-60c0372ba770590333f164c4066ee068c6a4f93d.tar.gz |
jacuzzi: add extpower gpio
jacuzzi has an AC_PRESENT pin, remove the custom callback and use
EXTPOWER_GPIO to handle it.
BUG=b:135895590
TEST=AC on/off in ec console reported correctly
BRANCH=master
Change-Id: I48110191a4d36eaa1ec3851d15562643e0e465be
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1718287
Reviewed-by: Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/jacuzzi/board.h')
-rw-r--r-- | board/jacuzzi/board.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/jacuzzi/board.h b/board/jacuzzi/board.h index 08a7974032..dcede405f2 100644 --- a/board/jacuzzi/board.h +++ b/board/jacuzzi/board.h @@ -26,6 +26,10 @@ #define CONFIG_BC12_DETECT_PI3USB9201 +#define CONFIG_EXTPOWER_GPIO +#undef CONFIG_EXTPOWER_DEBOUNCE_MS +#define CONFIG_EXTPOWER_DEBOUNCE_MS 200 + #define CONFIG_USB_PD_TCPM_FUSB302 #define CONFIG_USB_PD_DISCHARGE_GPIO #define CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT |