ppc4xx: AMCC Luan uses the new boardspecific DDR2 controller setup
authorStefan Roese <sr@denx.de>
Mon, 16 Jul 2007 08:01:38 +0000 (10:01 +0200)
committerStefan Roese <sr@denx.de>
Mon, 16 Jul 2007 08:01:38 +0000 (10:01 +0200)
Signed-off-by: Stefan Roese <sr@denx.de>
board/amcc/luan/luan.c
include/configs/luan.h

index 2eff3b33fdef4744b836fd622f66ae1c43315deb..7b16f8a39ac0cbfa15e4d6e0e3521a2455ccff36 100644 (file)
@@ -104,6 +104,13 @@ int checkboard(void)
        return  0;
 }
 
+/*
+ * Override the default functions in cpu/ppc4xx/44x_spd_ddr2.c with
+ * board specific values.
+ */
+u32 ddr_clktr(u32 default_val) {
+       return (SDRAM_CLKTR_CLKP_180_DEG_ADV);
+}
 
 /*************************************************************************
  *  int testdram()
index cbb59c50eaf3a8c605f51910b8dcd12f8653df36..e192d06923361f108e11e8257170635f6ad6f8f1 100644 (file)
 #define CONFIG_SPD_EEPROM      1       /* Use SPD EEPROM for setup     */
 #define SPD_EEPROM_ADDRESS     {0x53, 0x52}    /* SPD i2c spd addresses*/
 #define CONFIG_DDR_ECC         1       /* with ECC support             */
-#define CFG_44x_DDR2_CKTR_180  1       /* use 180 deg advance          */
 
 /*-----------------------------------------------------------------------
  * I2C