]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/ppc4xx/spd_sdram.c
* Patch by Dave Ellis, 22 May 2003:
[karo-tx-uboot.git] / cpu / ppc4xx / spd_sdram.c
index bf5d22429d6d0a9029da01e12b0ac7a5468a689d..9c1cac5d0e62c03c48b04fbeeaf838c3badd6d16 100644 (file)
@@ -289,7 +289,7 @@ long int spd_sdram(int(read_spd)(uint addr))
        /* now check for ECC ability of module. We only support ECC
         *   on 32 bit wide devices with 8 bit ECC.
         */
-       if ( (read_spd(11)==2) && ((read_spd(6)==40) || (read_spd(14)==8)) ){
+       if ( (read_spd(11)==2) && (read_spd(6)==40) && (read_spd(14)==8) ){
           sdram0_ecccfg=0xf<<SDRAM0_ECCCFG_SHIFT;
           ecc_on = 1;
        }