]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/mxsboot.c
fw_env.h: include autoconf.h
[karo-tx-uboot.git] / tools / mxsboot.c
index 90b21737b92f80bba2a78e41bb066dd40724ff94..6d48cfb3e43473caa4c88d5271e60676f207ca70 100644 (file)
@@ -142,6 +142,9 @@ static inline uint32_t mx28_nand_get_ecc_strength(uint32_t page_data_size,
 
                if (page_oob_size == 218)
                        return 16;
+
+               if (page_oob_size == 224)
+                       return 16;
        }
 
        return 0;
@@ -269,6 +272,9 @@ static struct mx28_nand_fcb *mx28_nand_get_fcb(uint32_t size)
                } else if (nand_oobsize == 218) {
                        fcb->ecc_block_n_ecc_type =     8;
                        fcb->ecc_block_0_ecc_type =     8;
+               } else if (nand_oobsize == 224) {
+                       fcb->ecc_block_n_ecc_type =     8;
+                       fcb->ecc_block_0_ecc_type =     8;
                }
        }