summaryrefslogtreecommitdiff
path: root/board/amcc/sequoia/sdram.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-06-04 22:59:44 +0200
committerWolfgang Denk <wd@denx.de>2007-06-04 22:59:44 +0200
commitc0c292b2852a12e9d93e99b3aaf5b0dac5f36fdc (patch)
tree980a8236578172e3eb8dd680f3f0f2539d7d3ea7 /board/amcc/sequoia/sdram.c
parentf61137937da9afb543a55ca44b7178f2feee34cf (diff)
parente3cbe1f93c5722f8ebbad468e30c069a2b511097 (diff)
downloadu-boot-imx-c0c292b2852a12e9d93e99b3aaf5b0dac5f36fdc.zip
u-boot-imx-c0c292b2852a12e9d93e99b3aaf5b0dac5f36fdc.tar.gz
u-boot-imx-c0c292b2852a12e9d93e99b3aaf5b0dac5f36fdc.tar.bz2
Merge with /home/wd/git/u-boot/custodian/u-boot-ppc4xx
Diffstat (limited to 'board/amcc/sequoia/sdram.c')
-rw-r--r--board/amcc/sequoia/sdram.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/amcc/sequoia/sdram.c b/board/amcc/sequoia/sdram.c
index d045df1..78e2cb4 100644
--- a/board/amcc/sequoia/sdram.c
+++ b/board/amcc/sequoia/sdram.c
@@ -387,7 +387,11 @@ void denali_core_search_data_eye(unsigned long memory_size)
long int initdram (int board_type)
{
#if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
+#if !defined(CONFIG_NAND_SPL)
ulong speed = get_bus_freq(0);
+#else
+ ulong speed = 133333333; /* 133MHz is on the safe side */
+#endif
mtsdram(DDR0_02, 0x00000000);