diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-08-08 11:26:49 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-08-09 11:18:59 -0700 |
commit | 100cace7abf24ac71581dd5d42286ca653b4c93c (patch) | |
tree | ce225eefa1ee5877db63fd333ab3f58b167cbbda | |
parent | 4d7e13ddc63525670981546f582d04de91f5e2ca (diff) | |
download | chrome-ec-100cace7abf24ac71581dd5d42286ca653b4c93c.tar.gz |
pit: leave 1.35V rail on during warm reboot
This maintains the contents of AP RAM during the warm reboot.
BUG=chrome-os-partner:21483
BRANCH=pit
TEST=from u-boot prompt,
Peach # mm 41f00000
41f00000: 00000000 ? 9
41f00004: 00000000 ? 9
41f00008: 00000000 ? 9
41f0000c: 00000000 ? 9
41f00010: 00000000 ? 9
41f00014: 00000000 ? 9
41f00018: 00000000 ? 9
41f0001c: 00000000 ? 9
41f00020: 00000000 ? 9
41f00024: 00000000 ? 9
41f00028: 00000000 ? 9
41f0002c: 00000000 ? 9
41f00030: 00000000 ? 9
41f00034: 00004000 ? 9
41f00038: 00000000 ? 9
41f0003c: 00000000 ? 9
41f00040: 00000000 ? .
Peach # md 41f00000
41f00000: 00000009 00000009 00000009 00000009 ................
41f00010: 00000009 00000009 00000009 00000009 ................
41f00020: 00000009 00000009 00000009 00000009 ................
41f00030: 00000009 00000009 00000009 00000009 ................
Then Alt+VolUp+R. Then repeat md command at u-boot prompt.
Change-Id: I07de4df2fe4c4dd86b88bbd208e1fb87860fa9d5
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/65227
Reviewed-by: Julius Werner <jwerner@chromium.org>
-rw-r--r-- | common/chipset_gaia.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/chipset_gaia.c b/common/chipset_gaia.c index 8ea5ff334e..a60a9970e8 100644 --- a/common/chipset_gaia.c +++ b/common/chipset_gaia.c @@ -348,7 +348,13 @@ void chipset_force_shutdown(void) /* Turn off all rails */ gpio_set_level(GPIO_EN_PP3300, 0); #ifndef BOARD_kirby - gpio_set_level(GPIO_EN_PP1350, 0); + /* + * Turn off PP1350 unless we're immediately waking back up. This + * works with the hack in chipset_reset() to preserve the contents of + * RAM across a reset. + */ + if (power_request != POWER_REQ_ON) + gpio_set_level(GPIO_EN_PP1350, 0); #endif set_pmic_pwrok(0); #ifndef BOARD_kirby |