summaryrefslogtreecommitdiff
path: root/recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch')
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch b/recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch
new file mode 100644
index 0000000000..045f255cec
--- /dev/null
+++ b/recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch
@@ -0,0 +1,22 @@
+Only in at91bootstrap-2.13/build: at91sam9g20nf
+Only in at91bootstrap-2.13/config: .depend
+Only in at91bootstrap-2.13: .config
+diff -ru at91bootstrap-2.13/main.c at91bootstrap-2.13_new/main.c
+--- at91bootstrap-2.13/main.c 2010-01-12 15:13:39.000000000 -0600
++++ at91bootstrap-2.13_new/main.c 2011-03-08 06:26:35.463088000 -0600
+@@ -174,6 +174,14 @@
+ user_hw_init();
+ #endif
+
++#ifdef CONFIG_USER_EBI_1V8
++//This patch will configure the 9G20 to run a 1.8V memory bus
++ *((int *)AT91C_CCFG_EBICSA) &= ~(0x1 << 16); //1.8V bus
++#else
++ *((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 */
+Only in at91bootstrap-2.13/result: at91sam9g20nf-nandflashboot-2.13-r0.map