From 8c7e6a021110347c3c8c6226a489ae6d207f487f Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Thu, 17 Apr 2014 17:13:51 -0500 Subject: at91bootstrap: add at91bootstrap-2.13-enable-watchdog.patch This is not used by default, but shows to enable the watchdog in at91bootstrap --- .../at91bootstrap-2.13-enable-watchdog.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 multitech/recipes/at91bootstrap/at91bootstrap-2.13/at91bootstrap-2.13-enable-watchdog.patch diff --git a/multitech/recipes/at91bootstrap/at91bootstrap-2.13/at91bootstrap-2.13-enable-watchdog.patch b/multitech/recipes/at91bootstrap/at91bootstrap-2.13/at91bootstrap-2.13-enable-watchdog.patch new file mode 100644 index 0000000..28c6378 --- /dev/null +++ b/multitech/recipes/at91bootstrap/at91bootstrap-2.13/at91bootstrap-2.13-enable-watchdog.patch @@ -0,0 +1,25 @@ +Index: at91bootstrap-2.13/board/at91sam9g20ek/at91sam9g20ek.c +=================================================================== +--- at91bootstrap-2.13.orig/board/at91sam9g20ek/at91sam9g20ek.c 2013-12-19 10:01:46.052713435 -0600 ++++ at91bootstrap-2.13/board/at91sam9g20ek/at91sam9g20ek.c 2014-04-17 16:28:50.915103740 -0500 +@@ -75,8 +75,10 @@ + {(char *) 0, 0, 0, PIO_DEFAULT, PIO_PERIPH_A}, + }; + +- /* Disable watchdog */ ++ /* jjg - don't disable watchdog */ ++ /* + writel(AT91C_WDTC_WDDIS, AT91C_BASE_WDTC + WDTC_WDMR); ++ */ + + /* At this stage the main oscillator is supposed to be enabled + * PCK = MCK = MOSC */ +@@ -115,6 +117,8 @@ + header(); + #endif /* CONFIG_VERBOSE */ + ++ dbg_print("Watchdog: enabled\r\n"); ++ + #ifdef CONFIG_SDRAM + dbg_print("SDRAM: slow slew rate\r\n"); + /* Initialize the matrix (memory voltage = 3.3, slow slew rate) */ -- cgit v1.2.3