Enable power switch WDT on IT5570E boards
Enable PWRSW WDT 2 and use the default timeout of 10 seconds. Allows forcing an EC reset in case it gets into an invalid state. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Jeremy Soller
parent
45520646aa
commit
8a1adc2bdc
@ -35,6 +35,11 @@ struct Gpio __code XLP_OUT = GPIO(B, 4);
|
||||
// clang-format on
|
||||
|
||||
void gpio_init() {
|
||||
// PWRSW WDT 2 Enable 2
|
||||
GCR9 = BIT(5);
|
||||
// PWRSW WDT 2 Enable 1
|
||||
GCR8 = BIT(4);
|
||||
|
||||
// Enable LPC reset on GPD2
|
||||
GCR = 0x04;
|
||||
// Disable UARTs
|
||||
@ -49,8 +54,6 @@ void gpio_init() {
|
||||
//TODO: what do these do?
|
||||
GCR1 = 0;
|
||||
GCR2 = 0;
|
||||
GCR8 = 0x10;
|
||||
GCR9 = 0x20;
|
||||
GCR10 = 0x02;
|
||||
GCR21 = 0;
|
||||
GCR22 = 0x80;
|
||||
|
Reference in New Issue
Block a user