]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/amcc/sequoia/sdram.c
Merge with /home/stefan/git/u-boot/bamboo-nand
[karo-tx-uboot.git] / board / amcc / sequoia / sdram.c
index 826d192501b7522ddba1c8a88b33c92c5cba5b90..78e2cb42a9a8743dfd238c661409d2d8913688bc 100644 (file)
@@ -371,6 +371,14 @@ void denali_core_search_data_eye(unsigned long memory_size)
 }
 #endif /* CONFIG_DDR_DATA_EYE */
 
+#if defined(CONFIG_NAND_SPL)
+/* Using cpu/ppc4xx/speed.c to calculate the bus frequency is too big
+ * for the 4k NAND boot image so define bus_frequency to 133MHz here
+ * which is save for the refresh counter setup.
+ */
+#define get_bus_freq(val)      133000000
+#endif
+
 /*************************************************************************
  *
  * initdram -- 440EPx's DDR controller is a DENALI Core
@@ -408,7 +416,7 @@ long int initdram (int board_type)
        mtsdram(DDR0_22, 0x00267F0B);
        mtsdram(DDR0_23, 0x00000000);
        mtsdram(DDR0_24, 0x01010002);
-       if (speed > 133333333)
+       if (speed > 133333334)
                mtsdram(DDR0_26, 0x5B26050C);
        else
                mtsdram(DDR0_26, 0x5B260408);