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:
Tim Crawford
2023-07-19 09:26:10 -06:00
committed by Jeremy Soller
parent 45520646aa
commit 8a1adc2bdc
20 changed files with 88 additions and 14 deletions

View File

@ -45,9 +45,9 @@ void gpio_init(void) {
//GCR22 = BIT(7);
// PWRSW WDT 2 Enable 2
//GCR9 = BIT(5);
GCR9 = BIT(5);
// PWRSW WDT 2 Enable 1
//GCR8 = BIT(4);
GCR8 = BIT(4);
// Enable LPC reset on GPD2
GCR = 0b10 << 1;