diff options
author | David Hendricks <dhendrix@chromium.org> | 2012-08-29 12:09:57 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-29 18:16:46 -0700 |
commit | ec3cf42c7fb4b800aec8904e6293cec02b90303a (patch) | |
tree | d4a931085b5b8a82edda4d3dc20babe1dd519ca0 /common | |
parent | 8cb10aaf5b9dc20517d74cbde2267cbd03b779c7 (diff) | |
download | chrome-ec-ec3cf42c7fb4b800aec8904e6293cec02b90303a.tar.gz |
gaia: notify chipset pre-init hook before turning on AP
This notifies the CHIPSET_PRE_INIT hook before turning on
the AP.
Signed-off-by: David Hendricks <dhendrix@chromium.org>
BRANCH=snow
BUG=chrome-os-partner:13315
TEST=tested in subsequent CL
Change-Id: Ic2bc17ed2b561f640af53970d291e5d04d2f72e7
Reviewed-on: https://gerrit.chromium.org/gerrit/31739
Reviewed-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Ready: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/gaia_power.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/common/gaia_power.c b/common/gaia_power.c index de7b0c6662..cc8914de7f 100644 --- a/common/gaia_power.c +++ b/common/gaia_power.c @@ -351,12 +351,16 @@ static int power_on(void) /* wait to have stable power */ usleep(DELAY_5V_SETUP); - /* - * Initiate PMIC power-on sequence only if cold booting AP to - * avoid accidental reset (crosbug.com/p/12650). - */ - if (gpio_get_level(GPIO_SOC1V8_XPSHOLD) == 0) + if (gpio_get_level(GPIO_SOC1V8_XPSHOLD) == 0) { + /* Initialize non-AP components */ + hook_notify(HOOK_CHIPSET_PRE_INIT, 0); + + /* + * Initiate PMIC power-on sequence only if cold booting AP to + * avoid accidental reset (crosbug.com/p/12650). + */ gpio_set_level(GPIO_PMIC_PWRON_L, 0); + } /* wait for all PMIC regulators to be ready */ wait_in_signal(GPIO_PP1800_LDO2, 1, PMIC_TIMEOUT); |