mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 08:31:52 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -144,6 +144,9 @@ int system_pre_init(void)
|
||||
;
|
||||
}
|
||||
|
||||
/* Brown-outs should trigger a reset */
|
||||
LM4_SYSTEM_PBORCTL |= 0x02;
|
||||
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user