From a787987e6a2cc7878ee9d58a6431d365a3fb195d Mon Sep 17 00:00:00 2001 From: Diana Z Date: Thu, 23 Jul 2020 22:50:54 -0600 Subject: Dedede: Move extpower_is_present() to baseboard This consolidates dedede boards to use a baseboard extpower_is_present() and also adds the condition to verify that the port is sinking, instead of providing Vbus. It also converts the RAA489000 boards to use the cached Vbus presence in pd_snk_is_vbus_provided(). BRANCH=None BUG=None TEST=on waddledoo and waddledee, verify "AC on" prints when a charger or charge-through servo v4 is plugged in, verify no "AC on" prints when a dongle is plugged in Signed-off-by: Diana Z Change-Id: I5941da789a4e810f6d8cc40cef4d32a5a03c5662 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317062 Tested-by: Devin Lu Reviewed-by: Aseda Aboagye Commit-Queue: Aseda Aboagye --- board/boten/board.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'board/boten/board.c') diff --git a/board/boten/board.c b/board/boten/board.c index 520d69d1bb..bf7fdb17bf 100644 --- a/board/boten/board.c +++ b/board/boten/board.c @@ -188,11 +188,6 @@ uint16_t tcpc_get_alert_status(void) return status; } -int extpower_is_present(void) -{ - return pd_check_vbus_level(0, VBUS_PRESENT); -} - void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, int charge_mv) { -- cgit v1.2.1