diff options
author | Varadarajan Narayanan <varada@codeaurora.org> | 2015-09-08 15:12:46 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-05-10 22:47:48 +0200 |
commit | 5df833179d0b5acd7c5598e8400f34904265b8b7 (patch) | |
tree | 991202cc941f21eba820676aaf0ac9dbf5791cb1 /src | |
parent | 838125b3cdc56e45101eb987c93ee617fb6e8565 (diff) |
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 <pgeorgi@chromium.org>
Original-Commit-Id: 65c8b9dd633f0d402cad7d609563c8aac9bf5115
Original-Change-Id: I8f0ea3c1b71e86a7ca733965ecbec6954a52f6e3
Original-Signed-off-by: Varadarajan Narayanan <varada@codeaurora.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/333298
Original-Commit-Ready: David Hendricks <dhendrix@chromium.org>
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: https://review.coreboot.org/14663
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/gale/reset.c | 24 |
1 files changed, 0 insertions, 24 deletions
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 <soc/iomap.h> #include <reset.h> -/* 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(); } |