]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/nand/kirkwood_nand.c
mtd: nand: mxs: Replace magic number for bits per ECC level with macro
[karo-tx-uboot.git] / drivers / mtd / nand / kirkwood_nand.c
index 72687a1da31b583d4cadc018629ebb755f10b10a..4fc34d6b9fca6d7b41ff44f52912da85532d1b9b 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <common.h>
 #include <asm/io.h>
-#include <asm/arch/kirkwood.h>
+#include <asm/arch/soc.h>
 #include <nand.h>
 
 /* NAND Flash Soc registers */
@@ -58,6 +58,9 @@ void kw_nand_select_chip(struct mtd_info *mtd, int chip)
 int board_nand_init(struct nand_chip *nand)
 {
        nand->options = NAND_COPYBACK | NAND_CACHEPRG | NAND_NO_PADDING;
+#if defined(CONFIG_SYS_NAND_NO_SUBPAGE_WRITE)
+       nand->options |= NAND_NO_SUBPAGE_WRITE;
+#endif
 #if defined(CONFIG_NAND_ECC_BCH)
        nand->ecc.mode = NAND_ECC_SOFT_BCH;
 #else