summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2011-03-11 10:19:51 -0600
committerJesse Gilles <jgilles@multitech.com>2011-03-11 10:19:51 -0600
commit613b69583e8974b9f4cf96e549f36bdd9f761df6 (patch)
tree4f3b7151746f845a1bec8125011deb6af43e7603
parenta261a5c7c813a14a95d6ac5f2176323869f3ea96 (diff)
at91bootstrap-2.13: run memory bus at 1.8v for mtcdp-embedded
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch22
-rw-r--r--recipes/at91bootstrap/at91bootstrap.inc1
-rw-r--r--recipes/at91bootstrap/at91bootstrap_2.13.bb3
3 files changed, 25 insertions, 1 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
diff --git a/recipes/at91bootstrap/at91bootstrap.inc b/recipes/at91bootstrap/at91bootstrap.inc
index 0e80a37599..f7ece21152 100644
--- a/recipes/at91bootstrap/at91bootstrap.inc
+++ b/recipes/at91bootstrap/at91bootstrap.inc
@@ -4,7 +4,6 @@ SECTION = "bootloaders"
SRC_URI = "ftp://www.at91.com/pub/buildroot/${PN}-${PV}.tar.bz2 \
file://defconfig \
"
-SRC_URI_append_mtcdp-embedded = "file://memory_bus_1.8v.patch;patch=1"
S = "${WORKDIR}/${PN}-${PV}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes/at91bootstrap/at91bootstrap_2.13.bb b/recipes/at91bootstrap/at91bootstrap_2.13.bb
index 6f544fba54..8db73b8904 100644
--- a/recipes/at91bootstrap/at91bootstrap_2.13.bb
+++ b/recipes/at91bootstrap/at91bootstrap_2.13.bb
@@ -5,4 +5,7 @@ DEFAULT_PREFERENCE_at91sam9g45ek = "1"
DEFAULT_PREFERENCE_at91sam9g45ekes = "1"
DEFAULT_PREFERENCE_at91sam9m10ek = "1"
+# run memory bus at 1.8v for mtcdp-embedded
+SRC_URI_append_mtcdp-embedded = "file://memory_bus_1.8v.patch;patch=1"
+AT91BOOTSTRAP_FLAGS_append_mtcdp-embedded = "-DCONFIG_USER_EBI_1V8"