summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2014-04-17 17:13:51 -0500
committerJesse Gilles <jgilles@multitech.com>2014-04-17 17:13:51 -0500
commit8c7e6a021110347c3c8c6226a489ae6d207f487f (patch)
tree406b0dafba5f5a9f2b287949cf7bff3be241c5bb
parenta8d3bcfe97af7a50f87cf2b931f4a869aa6e5b1c (diff)
at91bootstrap: add at91bootstrap-2.13-enable-watchdog.patch
This is not used by default, but shows to enable the watchdog in at91bootstrap
-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) */