summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-04-24 14:31:39 -0700
committerChromeBot <chrome-bot@google.com>2013-04-24 17:33:09 -0700
commita55e270f0b8c9111a52a544a6f782096dd3663dd (patch)
treeffe2ccc54a152bb34a71118c6a04242690c8ace1
parent13d08cbce308f7e5cc0e756a363d9c2af20714d1 (diff)
downloadchrome-ec-a55e270f0b8c9111a52a544a6f782096dd3663dd.tar.gz
Temporarily enable all FETs at chipset poweron
This will allow debugging until the I2C passthru command is supported, and should be removed once it is supported. BUG=chrome-os-partner:18778 BRANCH=pit TEST=build pit; can't test until we have boards Change-Id: I6285e76763a5f3bfd759161115d4905697b56e6c Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49096 Reviewed-by: Doug Anderson <dianders@chromium.org>
-rw-r--r--common/pmu_tps65090.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/pmu_tps65090.c b/common/pmu_tps65090.c
index 36ec5e4aea..eb8c5ed3a5 100644
--- a/common/pmu_tps65090.c
+++ b/common/pmu_tps65090.c
@@ -632,6 +632,21 @@ void pmu_init(void)
static void pmu_chipset_startup(void)
{
pmu_init();
+
+#ifdef BOARD_pit
+ /* Enable all FETs.
+ *
+ * TODO: This is temporary code; remove when I2C passthru is working
+ * (crosbug.com/p/18778).
+ */
+ {
+ int i;
+ int pgood;
+
+ for (i = 1; i <= 7; i++)
+ pmu_enable_fet(i, 1, &pgood);
+ }
+#endif
}
DECLARE_HOOK(HOOK_CHIPSET_STARTUP, pmu_chipset_startup, HOOK_PRIO_DEFAULT);