]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/ppc4xx/ecc.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / cpu / ppc4xx / ecc.c
index 3e87c8442ce7d31e28fb91311233f81ca8221344..3f989e7f59b16083154adc5503636a29ef3eee8a 100644 (file)
@@ -45,7 +45,8 @@
 
 #include "ecc.h"
 
-#if !defined(CONFIG_440EPX) && !defined(CONFIG_440GRX)
+#if defined(CONFIG_SDRAM_PPC4xx_IBM_DDR) || \
+    defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2)
 #if defined(CONFIG_DDR_ECC) || defined(CONFIG_SDRAM_ECC)
 /*
  *  void ecc_init()
@@ -67,7 +68,7 @@
  *
  *  Output(s):
  *    start - A pointer to the start of memory covered by ECC with
- *           CFG_ECC_PATTERN written to all locations and ECC data
+ *           CONFIG_SYS_ECC_PATTERN written to all locations and ECC data
  *           primed.
  *
  *  Returns:
@@ -75,7 +76,7 @@
  */
 void ecc_init(unsigned long * const start, unsigned long size)
 {
-       const unsigned long pattern = CFG_ECC_PATTERN;
+       const unsigned long pattern = CONFIG_SYS_ECC_PATTERN;
        unsigned long * const end = (unsigned long * const)((long)start + size);
        unsigned long * current = start;
        unsigned long mcopt1;
@@ -118,4 +119,4 @@ void ecc_init(unsigned long * const start, unsigned long size)
                                SDRAM_ECC_CFG_MCHK_CHK));
 }
 #endif /* defined(CONFIG_DDR_ECC) || defined(CONFIG_SDRAM_ECC) */
-#endif /* !defined(CONFIG_440EPX) && !defined(CONFIG_440GRX) */
+#endif /* defined(CONFIG_SDRAM_PPC4xx_IBM_DDR)... */