From a55e270f0b8c9111a52a544a6f782096dd3663dd Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 24 Apr 2013 14:31:39 -0700 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/49096 Reviewed-by: Doug Anderson --- common/pmu_tps65090.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); -- cgit v1.2.1