summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp/sdram_slow_slew_rate.patch15
-rw-r--r--recipes/at91bootstrap/at91bootstrap_2.13.bb8
2 files changed, 21 insertions, 2 deletions
diff --git a/recipes/at91bootstrap/at91bootstrap-2.13/mtcdp/sdram_slow_slew_rate.patch b/recipes/at91bootstrap/at91bootstrap-2.13/mtcdp/sdram_slow_slew_rate.patch
new file mode 100644
index 0000000000..a2cb3d4f7c
--- /dev/null
+++ b/recipes/at91bootstrap/at91bootstrap-2.13/mtcdp/sdram_slow_slew_rate.patch
@@ -0,0 +1,15 @@
+Index: at91bootstrap-2.13/board/at91sam9g20ek/at91sam9g20ek.c
+===================================================================
+--- at91bootstrap-2.13.orig/board/at91sam9g20ek/at91sam9g20ek.c 2011-10-31 13:20:49.207272783 -0500
++++ at91bootstrap-2.13/board/at91sam9g20ek/at91sam9g20ek.c 2011-10-31 13:21:39.099957717 -0500
+@@ -116,8 +116,8 @@
+ #endif /* CONFIG_VERBOSE */
+
+ #ifdef CONFIG_SDRAM
+- /* Initialize the matrix (memory voltage = 3.3) */
+- writel((readl(AT91C_BASE_CCFG + CCFG_EBICSA)) | AT91C_EBI_CS1A_SDRAMC | (1<<16), AT91C_BASE_CCFG + CCFG_EBICSA);
++ /* Initialize the matrix (memory voltage = 3.3, slow slew rate) */
++ writel((readl(AT91C_BASE_CCFG + CCFG_EBICSA)) | AT91C_EBI_CS1A_SDRAMC | (1<<16) | (1<<17), AT91C_BASE_CCFG + CCFG_EBICSA);
+
+ /* Configure SDRAM Controller */
+ sdram_init( AT91C_SDRAMC_NC_9 |
diff --git a/recipes/at91bootstrap/at91bootstrap_2.13.bb b/recipes/at91bootstrap/at91bootstrap_2.13.bb
index 8db73b8904..04121b3f3b 100644
--- a/recipes/at91bootstrap/at91bootstrap_2.13.bb
+++ b/recipes/at91bootstrap/at91bootstrap_2.13.bb
@@ -1,11 +1,15 @@
require at91bootstrap.inc
-PR = "r0"
+PR = "r1"
DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_at91sam9g45ek = "1"
DEFAULT_PREFERENCE_at91sam9g45ekes = "1"
DEFAULT_PREFERENCE_at91sam9m10ek = "1"
+# slow slew rate for SDRAM
+SRC_URI_append_mtcdp = "file://sdram_slow_slew_rate.patch;patch=1"
+
# run memory bus at 1.8v for mtcdp-embedded
-SRC_URI_append_mtcdp-embedded = "file://memory_bus_1.8v.patch;patch=1"
+SRC_URI_append_mtcdp-embedded = "file://memory_bus_1.8v.patch;patch=1 \
+ file://sdram_slow_slew_rate.patch;patch=1"
AT91BOOTSTRAP_FLAGS_append_mtcdp-embedded = "-DCONFIG_USER_EBI_1V8"