mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
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>
This commit is contained in:
parent
11bc755722
commit
999d7d326d
2 changed files with 8 additions and 0 deletions
5
README
5
README
|
@ -4496,6 +4496,11 @@ Low Level (hardware related) configuration options:
|
|||
- CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC:
|
||||
Enables the RTC32K OSC on AM33xx based plattforms
|
||||
|
||||
- CONFIG_SYS_NAND_NO_SUBPAGE_WRITE
|
||||
Option to disable subpage write in NAND driver
|
||||
driver that uses this:
|
||||
drivers/mtd/nand/davinci_nand.c
|
||||
|
||||
Freescale QE/FMAN Firmware Support:
|
||||
-----------------------------------
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue