]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: Sequoia: Remove cpu/ppc4xx/speed.c from NAND booting
authorStefan Roese <sr@denx.de>
Sat, 5 May 2007 06:29:01 +0000 (08:29 +0200)
committerStefan Roese <sr@denx.de>
Sat, 5 May 2007 06:29:01 +0000 (08:29 +0200)
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.

Signed-off-by: Stefan Roese <sr@denx.de>
board/amcc/sequoia/sdram.c
nand_spl/board/amcc/sequoia/Makefile

index f8b837ed286385c8445a9aec6b9b7430d9d4c6a6..d045df1872cf085424500f636d5953c4a0a40b45 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
@@ -404,7 +412,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);
index 510999db03ac85f7ab58788f7c1fcfc39f1f3541..b42da8cf682d96e5bb54712a47458d7f183fb3e9 100644 (file)
@@ -30,7 +30,7 @@ AFLAGS        += -DCONFIG_NAND_SPL
 CFLAGS += -DCONFIG_NAND_SPL
 
 SOBJS  = start.o init.o resetvec.o
-COBJS  = nand_boot.o ndfc.o sdram.o speed.o
+COBJS  = nand_boot.o ndfc.o sdram.o
 
 SRCS   := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
@@ -69,10 +69,6 @@ $(obj)start.S:
        @rm -f $(obj)start.S
        ln -s $(SRCTREE)/cpu/ppc4xx/start.S $(obj)start.S
 
-$(obj)speed.c:
-       @rm -f $(obj)speed.c
-       ln -s $(SRCTREE)/cpu/ppc4xx/speed.c $(obj)speed.c
-
 # from board directory
 $(obj)init.S:
        @rm -f $(obj)init.S