summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2013-08-16 13:19:23 -0700
committerChromeBot <chrome-bot@google.com>2013-08-21 16:09:56 -0700
commit10655b03fd66020bc7d44fe4d44ad415cb0480a0 (patch)
tree2b79e2a5fd9920650d997e88f0d89bc468782f41
parent4c23bf103a3cd78b96e19f469c956b3e89c8624d (diff)
downloadchrome-ec-10655b03fd66020bc7d44fe4d44ad415cb0480a0.tar.gz
pit: Only enable FET4 by default at cold reset
Now that U-Boot and kernel can properly talk to the EC in pit, there's no reason to hack all the FETs on. We only need to turn on FET4 which enables SD card booting. We'll leave the old "all fets on" hack there for "puppy", though. Apparently that still needs it? BRANCH=pit BUG=chrome-os-partner:21975 TEST=Boot up and see LCD turn on. TEST=Cold reset while holding recovery and can boot from SD card. Change-Id: Iae96375ac7bd1a9eed8243367332cf003b62c48d Signed-off-by: Doug Anderson <dianders@chromium.org> Previous-Reviewed-on: https://gerrit.chromium.org/gerrit/66127 (cherry picked from commit 0ece0dc9556f065f89e67af72847579d1b4ce3cd) Reviewed-on: https://gerrit.chromium.org/gerrit/66160 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--common/pmu_tps65090.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/pmu_tps65090.c b/common/pmu_tps65090.c
index c797919da2..240d97b1d0 100644
--- a/common/pmu_tps65090.c
+++ b/common/pmu_tps65090.c
@@ -621,7 +621,7 @@ static void pmu_chipset_startup(void)
{
pmu_init();
-#if defined(BOARD_pit) || defined(BOARD_puppy)
+#if defined(BOARD_puppy)
/* Enable all FETs.
*
* TODO: This is temporary code; remove when I2C passthru is working
@@ -634,6 +634,12 @@ static void pmu_chipset_startup(void)
for (i = 1; i <= 7; i++)
pmu_enable_fet(i, 1, &pgood);
}
+#elif defined(BOARD_pit)
+ /* Enable FET4 by default which allows for SD Card booting */
+ {
+ int pgood;
+ pmu_enable_fet(4, 1, &pgood);
+ }
#endif
}
DECLARE_HOOK(HOOK_CHIPSET_STARTUP, pmu_chipset_startup, HOOK_PRIO_DEFAULT);