From 5df833179d0b5acd7c5598e8400f34904265b8b7 Mon Sep 17 00:00:00 2001 From: Varadarajan Narayanan Date: Tue, 8 Sep 2015 15:12:46 +0530 Subject: google/gale: Implement reset Implement reset using PSHOLD and remove watchdog based reset not needed for ipx40xx. BUG=chrome-os-partner:49249 TEST=None. Initial code not sure if it will even compile BRANCH=none Change-Id: Ibd3f9958682ed2e85e778976df3a8e124a7441fd Signed-off-by: Patrick Georgi Original-Commit-Id: 65c8b9dd633f0d402cad7d609563c8aac9bf5115 Original-Change-Id: I8f0ea3c1b71e86a7ca733965ecbec6954a52f6e3 Original-Signed-off-by: Varadarajan Narayanan Original-Reviewed-on: https://chromium-review.googlesource.com/333298 Original-Commit-Ready: David Hendricks Original-Reviewed-by: David Hendricks Reviewed-on: https://review.coreboot.org/14663 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/google/gale/reset.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/gale/reset.c b/src/mainboard/google/gale/reset.c index 94dcd4befd..468902a617 100644 --- a/src/mainboard/google/gale/reset.c +++ b/src/mainboard/google/gale/reset.c @@ -19,30 +19,6 @@ #include #include -/* Watchdog bite time set to default reset value */ -#define RESET_WDT_BITE_TIME 0x31F3 - -/* Watchdog bark time value is kept larger than the watchdog timeout - * of 0x31F3, effectively disabling the watchdog bark interrupt - */ -#define RESET_WDT_BARK_TIME (5 * RESET_WDT_BITE_TIME) - -static void wdog_reset(void) -{ - printk(BIOS_DEBUG, "\nResetting with watchdog!\n"); - - write32(APCS_WDT0_EN, 0); - write32(APCS_WDT0_RST, 1); - write32(APCS_WDT0_BARK_TIME, RESET_WDT_BARK_TIME); - write32(APCS_WDT0_BITE_TIME, RESET_WDT_BITE_TIME); - write32(APCS_WDT0_EN, 1); - write32(APCS_WDT0_CPU0_WDOG_EXPIRED_ENABLE, 1); - - for (;;) - ; -} - void hard_reset(void) { - wdog_reset(); } -- cgit v1.2.3