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.c | |
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.c')
-rw-r--r-- | board/jacuzzi/board.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/board/jacuzzi/board.c b/board/jacuzzi/board.c index 6d6f722168..6f2450b09d 100644 --- a/board/jacuzzi/board.c +++ b/board/jacuzzi/board.c @@ -198,18 +198,6 @@ int board_discharge_on_ac(int enable) return charger_discharge_on_ac(enable); } -int extpower_is_present(void) -{ - /* - * The charger will indicate VBUS presence if we're sourcing 5V, - * so exclude such ports. - */ - if (board_vbus_source_enabled(0)) - return 0; - else - return tcpm_get_vbus_level(0); -} - int pd_snk_is_vbus_provided(int port) { /* TODO(b:138352732): read IT8801 GPIO EN_USBC_CHARGE_L */ |