From f322e32a3ec052be3f0c226145448fed63aa7ef9 Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Mon, 22 Aug 2016 16:15:59 -0700 Subject: apollolake: Do not power-on AP till sufficient power is provided Do not power-on the AP unless battery can provide sufficient power or the charger is negotiated to sufficient power. BUG=chrome-os-partner:56494 BRANCH=none TEST=Manually tested on Reef. Device can boot to OS without the battery & cut-off battery. Change-Id: Ib22bad81a29ccbb2fecc8e835148b627dd722988 Signed-off-by: Vijay Hiremath Reviewed-on: https://chromium-review.googlesource.com/374023 Commit-Ready: Vijay P Hiremath Tested-by: Vijay P Hiremath Reviewed-by: Aaron Durbin --- power/apollolake.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'power') diff --git a/power/apollolake.c b/power/apollolake.c index c477064c8d..3710579c3e 100644 --- a/power/apollolake.c +++ b/power/apollolake.c @@ -256,9 +256,6 @@ static enum power_state _power_handle_state(enum power_state state) /* Platform is powering up, clear forcing_coldreset */ forcing_coldreset = 0; - /* Call hooks to initialize PMIC */ - hook_notify(HOOK_CHIPSET_PRE_INIT); - /* * Allow up to 1s for charger to be initialized, in case * we're trying to boot the AP with no battery. @@ -276,6 +273,9 @@ static enum power_state _power_handle_state(enum power_state state) return POWER_G3; } + /* Call hooks to initialize PMIC */ + hook_notify(HOOK_CHIPSET_PRE_INIT); + /* Wait for RSMRST_L de-assert */ if (power_wait_signals(IN_PGOOD_ALL_CORE)) { chipset_force_shutdown(); -- cgit v1.2.1