blob: f08489bc704eea39151767445f713d75eeedd463 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Index: at91bootstrap-2.13/main.c
===================================================================
--- at91bootstrap-2.13.orig/main.c 2010-01-12 15:13:39.000000000 -0600
+++ at91bootstrap-2.13/main.c 2013-12-19 09:27:29.213520415 -0600
@@ -174,6 +174,16 @@
user_hw_init();
#endif
+#ifdef CONFIG_USER_EBI_1V8
+ //This patch will configure the 9G20 to run a 1.8V memory bus
+ dbg_print("Memory bus: 1.8v\r\n");
+ *((int *)AT91C_CCFG_EBICSA) &= ~(0x1 << 16); //1.8V bus
+#else
+ dbg_print("Memory bus: 3.3v\r\n");
+ *((int *)AT91C_CCFG_EBICSA) |= (0x1 << 16); //3.3V bus
+#endif
+
+
#if defined(CONFIG_SDRAM) || defined(CONFIG_SDDRC) || defined(CONFIG_DDR2)
#if defined(CONFIG_LONG_TEST)
/* This will not work for the CAP9 where RAM in elsewhere */
|