diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/aspeed/ast-g5/ast-g5.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/aspeed/ast-g5/ast-g5.c b/board/aspeed/ast-g5/ast-g5.c index da79d7b79a..e67a4bf8b2 100644 --- a/board/aspeed/ast-g5/ast-g5.c +++ b/board/aspeed/ast-g5/ast-g5.c @@ -46,3 +46,12 @@ int board_eth_init(bd_t *bd) return aspeednic_initialize(bd); } #endif + +/* Called by macro WATCHDOG_RESET */ +#if defined(CONFIG_HW_WATCHDOG) +void hw_watchdog_reset(void) +{ + /* Restart WD2 timer */ + writel(0x4755, AST_WDT2_BASE + 0x08); +} +#endif /* CONFIG_WATCHDOG */ |