瀏覽代碼

ppc4xx: Remove unused code for Sequoia NAND booting version

The current define of get_bus_freq() in the CONFIG_NAND_SPL #ifdef is not
used at all. This patch changes it's define to the currently used value of
133333333 and removes the unnecessary code.

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese 16 年之前
父節點
當前提交
17c1b0e89b
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      board/amcc/sequoia/sdram.c

+ 1 - 5
board/amcc/sequoia/sdram.c

@@ -44,7 +44,7 @@ extern void denali_core_search_data_eye(void);
  * for the 4k NAND boot image so define bus_frequency to 133MHz here
  * for the 4k NAND boot image so define bus_frequency to 133MHz here
  * which is save for the refresh counter setup.
  * which is save for the refresh counter setup.
  */
  */
-#define get_bus_freq(val)	133000000
+#define get_bus_freq(val)	133333333
 #endif
 #endif
 
 
 /*************************************************************************
 /*************************************************************************
@@ -55,11 +55,7 @@ extern void denali_core_search_data_eye(void);
 phys_size_t initdram (int board_type)
 phys_size_t initdram (int board_type)
 {
 {
 #if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
 #if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
-#if !defined(CONFIG_NAND_SPL)
 	ulong speed = get_bus_freq(0);
 	ulong speed = get_bus_freq(0);
-#else
-	ulong speed = 133333333;	/* 133MHz is on the safe side	*/
-#endif
 
 
 	mtsdram(DDR0_02, 0x00000000);
 	mtsdram(DDR0_02, 0x00000000);