summaryrefslogtreecommitdiff
path: root/multitech/recipes/at91bootstrap/at91bootstrap-2.13/at91bootstrap-2.13-enable-watchdog.patch
blob: 28c6378201708ca8f27a965381c35d2f67122308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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) */