]> git.sur5r.net Git - u-boot/blobdiff - cpu/ppc4xx/ndfc.c
ppc4xx: Fix problem with ECC ordering for PPC4xx NDFC platforms
[u-boot] / cpu / ppc4xx / ndfc.c
index ba481ad5584c4394a0bc243649591b56c55c1833..971e2ae6c73e4e6ff53cc2dd29ea604772584e77 100644 (file)
@@ -93,8 +93,8 @@ static int ndfc_calculate_ecc(struct mtd_info *mtdinfo,
 
        /* The NDFC uses Smart Media (SMC) bytes order
         */
-       ecc_code[0] = p[1];
-       ecc_code[1] = p[2];
+       ecc_code[0] = p[2];
+       ecc_code[1] = p[1];
        ecc_code[2] = p[3];
 
        return 0;