diff options
Diffstat (limited to 'chip/lm4/system.c')
-rw-r--r-- | chip/lm4/system.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/chip/lm4/system.c b/chip/lm4/system.c index 56d0525c0a..f3bcf85a62 100644 --- a/chip/lm4/system.c +++ b/chip/lm4/system.c @@ -29,8 +29,9 @@ static void check_reset_cause(void) enum system_reset_cause_t reset_cause = SYSTEM_RESET_UNKNOWN; uint32_t raw_reset_cause; - /* Read the raw reset cause */ + /* Read and clear the raw reset cause */ raw_reset_cause = LM4_SYSTEM_RESC; + LM4_SYSTEM_RESC = 0; if (hib_status & 0x0d) { /* the hibernation module wakes up the system */ @@ -132,16 +133,6 @@ int system_pre_init(void) } -int system_init(void) -{ - /* Clear the hardware reset cause, now that we've committed to running - * this image. */ - LM4_SYSTEM_RESC = 0; - - return EC_SUCCESS; -} - - int system_reset(int is_cold) { /* TODO: (crosbug.com/p/7470) support cold boot; this is a |