From 100cace7abf24ac71581dd5d42286ca653b4c93c Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Thu, 8 Aug 2013 11:26:49 -0700 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/65227 Reviewed-by: Julius Werner --- common/chipset_gaia.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1