summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-08-29 12:12:42 -0700
committerGerrit <chrome-bot@google.com>2012-08-29 18:16:47 -0700
commit3efa44c57bb0637d847f9160d38e645afda7f941 (patch)
tree0f0545b79f998248792553c7e9c387ae4b969c43
parentec3cf42c7fb4b800aec8904e6293cec02b90303a (diff)
downloadchrome-ec-3efa44c57bb0637d847f9160d38e645afda7f941.tar.gz
move pmu_init_registers() from pmu_init() to chipset pre-init hook
This moves the PMU register initialization from pmu_init(), which gets called whenever the EC reboots/sysjumps (even when the AP is running), to a hook which will can called selectively when the AP is cold booting. Signed-off-by: David Hendricks <dhendrix@chromium.org> BRANCH=snow BUG=chrome-os-partner:13315 TEST=tested on snow - jumping between RO <--> RW no longer causes the screen to turn off due to resetting FET control regs. Change-Id: I5453bf86af50b84a05a259dc896f04d818b5641b Reviewed-on: https://gerrit.chromium.org/gerrit/31740 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>
-rw-r--r--common/pmu_tps65090.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/pmu_tps65090.c b/common/pmu_tps65090.c
index 4ed7c5a5c6..adb0eb79d7 100644
--- a/common/pmu_tps65090.c
+++ b/common/pmu_tps65090.c
@@ -469,15 +469,12 @@ static int pmu_init_registers(void)
return EC_SUCCESS;
}
+DECLARE_HOOK(HOOK_CHIPSET_PRE_INIT, pmu_init_registers, HOOK_PRIO_DEFAULT);
void pmu_init(void)
{
int failure = 0;
- /* Reset everything to default, safe values */
- if (!failure)
- failure = pmu_init_registers();
-
#ifdef CONFIG_PMU_BOARD_INIT
if (!failure)
failure = board_pmu_init();