From: Holger Brunck Date: Fri, 15 Aug 2014 08:51:47 +0000 (+0200) Subject: arm/kirkwood/nand: allow forced disabling for subpage writes X-Git-Tag: v2014.10-rc2~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=292221e1837e0cf97d835f40c506ef8a72dc1e44;p=u-boot arm/kirkwood/nand: allow forced disabling for subpage writes Make it configurable to disable subpage writes like the DaVinci NAND driver already does. Signed-off-by: Holger Brunck cc: Valentin Longchamp cc: Prafulla Wadaskar cc: Scott Wood --- diff --git a/drivers/mtd/nand/kirkwood_nand.c b/drivers/mtd/nand/kirkwood_nand.c index 72687a1da3..3e5fb0cd65 100644 --- a/drivers/mtd/nand/kirkwood_nand.c +++ b/drivers/mtd/nand/kirkwood_nand.c @@ -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