diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-04-16 13:06:36 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-16 14:55:13 -0700 |
commit | 5f18b03e1b5429600cae87c42b70ec301e41dcd5 (patch) | |
tree | 329dafe0f3a72224a8159e27d04a8dd3d78312fd /common/pmu_tps65090_charger.c | |
parent | caad1bdbd4e4509a07aa2cee97df8dbdc8621e4d (diff) | |
download | chrome-ec-5f18b03e1b5429600cae87c42b70ec301e41dcd5.tar.gz |
PMIC_PWROK is active-high on pit
Add a function which handles translation of PWROK from logical level
to physical level.
Also implement chipset_force_shutdown() in gaia_power.c, so PMU code
doesn't need to know about PWROK physical level.
BUG=chrome-os-partner:18738
BRANCH=none
TEST=build all platforms; boot spring
Change-Id: I360266ef89b6ead49a633cd57b7530f791b04c9e
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/48251
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/pmu_tps65090_charger.c')
-rw-r--r-- | common/pmu_tps65090_charger.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/common/pmu_tps65090_charger.c b/common/pmu_tps65090_charger.c index b9295c242f..0767e38056 100644 --- a/common/pmu_tps65090_charger.c +++ b/common/pmu_tps65090_charger.c @@ -100,13 +100,7 @@ static int system_off(void) { if (chipset_in_state(CHIPSET_STATE_ON)) { CPUTS("[pmu] turn system off\n"); - /* TODO(rongchang): need chipset_force_hard_off(), - * and remove these gpio hack - */ - gpio_set_level(GPIO_EN_PP3300, 0); - gpio_set_level(GPIO_EN_PP1350, 0); - gpio_set_level(GPIO_PMIC_PWRON_L, 1); - gpio_set_level(GPIO_EN_PP5000, 0); + chipset_force_shutdown(); } return ST_IDLE; |