From 1d50137e31007e2cf05961b13efc07dcc740994f Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 21 Feb 2012 11:03:26 -0800 Subject: [PATCH] Set VDD3ON flag when hibernating Signed-off-by: Randall Spangler BUG=chrome-os-partner:8125 TEST='hibernate 1000' should hibernate and wake back up Change-Id: I3bf36171ea86a90415593bdc884c004bfff62c4c --- chip/lm4/system.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chip/lm4/system.c b/chip/lm4/system.c index fa17eccbaf..200cd6c73c 100644 --- a/chip/lm4/system.c +++ b/chip/lm4/system.c @@ -83,7 +83,12 @@ void system_hibernate(uint32_t seconds, uint32_t microseconds) LM4_HIBERNATE_HIBRTCLD = 0; /* go to hibernation and wake on RTC match or WAKE pin */ wait_for_hibctl_wc(); +#ifdef BOARD_link + /* Need VDD3ON because we can't drop VDD externally */ + LM4_HIBERNATE_HIBCTL = 0x15B; +#else LM4_HIBERNATE_HIBCTL = 0x5B; +#endif /* we are going to hibernate ... */ while (1) ; }