summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam McNally <sammc@chromium.org>2023-02-13 20:27:49 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-15 00:29:20 +0000
commit7ec0dc24763c143a74644298cd915c9b1ae86df0 (patch)
treeb33be7be821d3ddf6dfc115dd506f656e643af85
parentcca2382f1bb6dad7f1866328c6252f8026f81a9e (diff)
downloadchrome-ec-7ec0dc24763c143a74644298cd915c9b1ae86df0.tar.gz
dibbi: Update board_vbus_source_enabled() to use ppc_is_sourcing_vbus().
BUG=b:269050050 TEST=Boot dibbi from USB-C power BRANCH=none Change-Id: Id811b71710a53bd64e13648dfa52093d9b23bcda Signed-off-by: Sam McNally <sammc@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4240912 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
-rw-r--r--board/dibbi/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/dibbi/board.c b/board/dibbi/board.c
index af95d1f79e..a7d7767341 100644
--- a/board/dibbi/board.c
+++ b/board/dibbi/board.c
@@ -191,7 +191,7 @@ int board_vbus_source_enabled(int port)
if (port != CHARGE_PORT_TYPEC0)
return 0;
- return ppc_is_vbus_present(port);
+ return ppc_is_sourcing_vbus(port);
}
/* Vconn control for integrated ITE TCPC */