diff options
author | Holger Brunck <holger.brunck@keymile.com> | 2014-08-15 10:51:47 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-08-30 07:46:41 -0400 |
commit | 292221e1837e0cf97d835f40c506ef8a72dc1e44 (patch) | |
tree | bf9d375f320d20de9587880b29c43387402f1214 /drivers/mtd | |
parent | 67172528377eddaa8098b8085b8406dc9e5d4ce0 (diff) | |
download | u-boot-imx-292221e1837e0cf97d835f40c506ef8a72dc1e44.zip u-boot-imx-292221e1837e0cf97d835f40c506ef8a72dc1e44.tar.gz u-boot-imx-292221e1837e0cf97d835f40c506ef8a72dc1e44.tar.bz2 |
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 <holger.brunck@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/kirkwood_nand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/kirkwood_nand.c b/drivers/mtd/nand/kirkwood_nand.c index 72687a1..3e5fb0c 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 |