From b73850f7644db4f4c68f6efda43928a5be5a8534 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Sun, 10 Apr 2011 08:17:50 +0000 Subject: MX31: mx31pdk: Add watchdog support Signed-off-by: Fabio Estevam --- board/freescale/mx31pdk/mx31pdk.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'board/freescale/mx31pdk') diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 826fb4a..08addd2 100644 --- a/board/freescale/mx31pdk/mx31pdk.c +++ b/board/freescale/mx31pdk/mx31pdk.c @@ -28,9 +28,17 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; +#ifdef CONFIG_HW_WATCHDOG +void hw_watchdog_reset(void) +{ + mxc_hw_watchdog_reset(); +} +#endif + int dram_init(void) { /* dram_init must store complete ramsize in gd->ram_size */ @@ -68,6 +76,14 @@ int board_init(void) return 0; } +int board_late_init(void) +{ +#ifdef CONFIG_HW_WATCHDOG + mxc_hw_watchdog_enable(); +#endif + return 0; +} + int checkboard(void) { printf("Board: MX31PDK\n"); -- cgit v1.1