diff options
author | Karicheri, Muralidharan <m-karicheri2@ti.com> | 2014-04-04 13:16:50 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-04-17 17:24:38 -0400 |
commit | 999d7d326de45c014077cda9904e9ac25166c3f2 (patch) | |
tree | 71c3b02db96bd6d0bf8aaf509bb874226b6e4fec /drivers/mtd/nand | |
parent | 11bc75572218eeb7f9d9a5f189e98e328a8aeac9 (diff) | |
download | u-boot-imx-999d7d326de45c014077cda9904e9ac25166c3f2.zip u-boot-imx-999d7d326de45c014077cda9904e9ac25166c3f2.tar.gz u-boot-imx-999d7d326de45c014077cda9904e9ac25166c3f2.tar.bz2 |
NAND: DaVinci: allow forced disable of subpage writes
This patch introduces a configurable mechanism to disable
subpage writes in the DaVinci NAND driver.
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index 5b17d7b..75b03a7 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -609,6 +609,9 @@ void davinci_nand_init(struct nand_chip *nand) #ifdef CONFIG_SYS_NAND_USE_FLASH_BBT nand->bbt_options |= NAND_BBT_USE_FLASH; #endif +#ifdef CONFIG_SYS_NAND_NO_SUBPAGE_WRITE + nand->options |= NAND_NO_SUBPAGE_WRITE; +#endif #ifdef CONFIG_SYS_NAND_HW_ECC nand->ecc.mode = NAND_ECC_HW; nand->ecc.size = 512; |