From 52fdd95321cb56094498f358872400969e260f9e Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Thu, 26 May 2016 18:26:11 -0700 Subject: BD99955: Get the VBUS provided status from individual ports BUG=chrome-os-partner:53786 BRANCH=none TEST=Manually tested on Amenia. VBUS provide status is updated properly for inividual ports. Change-Id: I59c41988438543033db2322029169f405f347869 Signed-off-by: Vijay Hiremath Reviewed-on: https://chromium-review.googlesource.com/347895 Commit-Ready: Vijay P Hiremath Tested-by: Vijay P Hiremath Reviewed-by: Shawn N --- board/kevin/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'board/kevin') diff --git a/board/kevin/board.c b/board/kevin/board.c index f3f99d38b9..65fa97f125 100644 --- a/board/kevin/board.c +++ b/board/kevin/board.c @@ -204,7 +204,8 @@ void board_set_charge_limit(int port, int supplier, int charge_ma) int extpower_is_present(void) { - return bd99955_extpower_is_present(); + /* Check VBUS on either port */ + return bd99955_is_vbus_provided(BD99955_CHARGE_PORT_BOTH); } static void board_init(void) -- cgit v1.2.1