summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multitech/recipes/at91bootstrap/at91bootstrap-2.13/at91bootstrap-2.13-enable-watchdog.patch25
1 files changed, 25 insertions, 0 deletions
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) */