]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/mpc8540ads/mpc8540ads.c
* Patch by Jon Loeliger, 2005-05-05
[people/ms/u-boot.git] / board / mpc8540ads / mpc8540ads.c
index 01b03866e8b607b71ca8dd9a0c8422700556ab2c..d0eb6904ada1b26c13b1b89829a000c4ab1c85cc 100644 (file)
@@ -31,7 +31,7 @@
 #include <asm/immap_85xx.h>
 #include <spd.h>
 
-#if defined(CONFIG_DDR_ECC)
+#if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 
@@ -96,7 +96,7 @@ initdram(int board_type)
        dram_size = fixed_sdram ();
 #endif
 
-#if defined(CONFIG_DDR_ECC)
+#if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
        /*
         * Initialize and enable DDR ECC.
         */