Commit 292221e1837e0cf97d835f40c506ef8a72dc1e44
Committed by
Tom Rini
1 parent
6717252837
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
drivers/mtd/nand/kirkwood_nand.c
... | ... | @@ -58,6 +58,9 @@ |
58 | 58 | int board_nand_init(struct nand_chip *nand) |
59 | 59 | { |
60 | 60 | nand->options = NAND_COPYBACK | NAND_CACHEPRG | NAND_NO_PADDING; |
61 | +#if defined(CONFIG_SYS_NAND_NO_SUBPAGE_WRITE) | |
62 | + nand->options |= NAND_NO_SUBPAGE_WRITE; | |
63 | +#endif | |
61 | 64 | #if defined(CONFIG_NAND_ECC_BCH) |
62 | 65 | nand->ecc.mode = NAND_ECC_SOFT_BCH; |
63 | 66 | #else |