]> git.sur5r.net Git - u-boot/blobdiff - cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
Move architecture-specific includes to arch/$ARCH/include/asm
[u-boot] / cpu / ppc4xx / 4xx_ibm_ddr2_autocalib.c
index 91bf582d6e800409671894640f2e25d35f990d5a..0283c91d84109a3533d8aa8a40a23201dea2f21d 100644 (file)
@@ -42,6 +42,8 @@
 #include <asm/io.h>
 #include <asm/processor.h>
 
+#include "ecc.h"
+
 #if defined(CONFIG_PPC4xx_DDR_AUTOCALIBRATION)
 
 /*
@@ -177,7 +179,7 @@ static u32 *get_membase(int bxcr_num)
 
 static inline void ecc_clear_status_reg(void)
 {
-       mtsdram(SDRAM_ECCCR, 0xffffffff);
+       mtsdram(SDRAM_ECCES, 0xffffffff);
 #if defined(SDRAM_R0BAS)
        mtdcr(SDRAM_ERRSTATLL, 0xffffffff);
 #endif
@@ -210,7 +212,7 @@ static int ecc_check_status_reg(void)
         * ecc error, then don't count
         * this as a passing value
         */
-       mfsdram(SDRAM_ECCCR, ecc_status);
+       mfsdram(SDRAM_ECCES, ecc_status);
        if (ecc_status != 0x00000000) {
                /* clear on error */
                ecc_clear_status_reg();