mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 02:51:26 +00:00
reef: ensure board can boot again after entring G3 after SW sync
When SW sync is enabled and the board enters G3 after being up
there was no way to boot the board again because the
system_jumped_to_this_image() check disallowed the pmic startup
sequence. One needs to check if the pmic is also already on
before bailing on the pmic startup sequence.
BUG=chrome-os-partner:56530
BRANCH=None
TEST=Booted. Jumped to RW EC. Shutdown system. Can boot again once
G3 entered.
Change-Id: I71670ceee09536a282479d1eca6a3ce264f0f5d3
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/374080
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
@@ -356,8 +356,12 @@ const struct button_config buttons[CONFIG_BUTTON_COUNT] = {
|
||||
/* Called by APL power state machine when transitioning from G3 to S5 */
|
||||
static void chipset_pre_init(void)
|
||||
{
|
||||
/* No need to re-init PMIC since settings are sticky across sysjump */
|
||||
if (system_jumped_to_this_image())
|
||||
/*
|
||||
* No need to re-init PMIC since settings are sticky across sysjump.
|
||||
* However, be sure to check that PMIC is already enabled. If it is
|
||||
* then there's no need to re-sequence the PMIC.
|
||||
*/
|
||||
if (system_jumped_to_this_image() && gpio_get_level(GPIO_PMIC_EN))
|
||||
return;
|
||||
|
||||
#if IS_PROTO == 0
|
||||
|
||||
Reference in New Issue
Block a user