From 4c8445626a6c5e18bfef7effd61eb74813522e06 Mon Sep 17 00:00:00 2001 From: Scott Date: Thu, 9 Mar 2017 11:03:36 -0800 Subject: [PATCH] eve: Increase the minimum battery level needed for try source To improve robustness of booting under low battery condidtions, increased the thershold CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC from 1 to 2. The effect of this change is that try srouce mode will be disabled until the battery has >= 2% of charge. This prevents the port from disconnecting, when a USB PD charge is connected under this low battery condition. BUG=b:36093023 BRANCH=None TEST=Verfied that when the battery charge was < 2% the USB PD state machine on Eve did not go to state 15 (SRC_DISCONNECTED) after initially attaching as a sink device. When the battery charge is >= 2% then observed that the transition to state 15 happens. Change-Id: I50123bc4f98e7a8dc793d9a9844d1d9961fde121 Signed-off-by: Scott Reviewed-on: https://chromium-review.googlesource.com/452739 Commit-Ready: Scott Collyer Tested-by: Scott Collyer Reviewed-by: Duncan Laurie --- board/eve/board.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/eve/board.h b/board/eve/board.h index f1b90dd82a..39c29957de 100644 --- a/board/eve/board.h +++ b/board/eve/board.h @@ -160,6 +160,8 @@ #define CONFIG_USB_PD_TCPM_ANX74XX #define CONFIG_USB_PD_TCPM_TCPCI #define CONFIG_USB_PD_TRY_SRC +#undef CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC +#define CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC 2 #define CONFIG_USB_POWER_DELIVERY #define CONFIG_USBC_SS_MUX #define CONFIG_USBC_SS_MUX_DFP_ONLY