Enable brown-out reset

This resets the EC when power falls below the brown-out threshold

Signed-off-by: Randall Spangler <rspangler@chromium.org>

BUG=chrome-os-partner:9952
TEST=hopefully srikanth can; requires hardware mods to test.

Change-Id: I161e49003409cb68eb43303c3c8de0eb4cc27104
This commit is contained in:
Randall Spangler
2012-05-24 15:33:49 -07:00
parent b0fe455608
commit 9d46eb75a2
2 changed files with 4 additions and 0 deletions

View File

@@ -187,6 +187,7 @@ static inline int lm4_fan_addr(int ch, int offset)
#define LM4_SYSTEM_DID0 LM4REG(0x400fe000)
#define LM4_SYSTEM_DID1 LM4REG(0x400fe004)
#define LM4_SYSTEM_PBORCTL LM4REG(0x400fe030)
#define LM4_SYSTEM_RIS LM4REG(0x400fe050)
#define LM4_SYSTEM_MISC LM4REG(0x400fe058)
#define LM4_SYSTEM_RESC LM4REG(0x400fe05c)

View File

@@ -144,6 +144,9 @@ int system_pre_init(void)
;
}
/* Brown-outs should trigger a reset */
LM4_SYSTEM_PBORCTL |= 0x02;
return EC_SUCCESS;
}