diff options
author | Martin Lund <malu@gomspace.com> | 2018-10-30 14:16:19 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-11-26 10:50:54 +0100 |
commit | 1cefca71d237aae2c5cc2445f7698941443a2cd9 (patch) | |
tree | feb16cde321046f9650e77ef83e6b3c44fdc4ed5 /drivers/mtd/nand | |
parent | c25e804dd852bc316b6c4dee53c9b2211d247468 (diff) | |
download | u-boot-1cefca71d237aae2c5cc2445f7698941443a2cd9.tar.gz u-boot-1cefca71d237aae2c5cc2445f7698941443a2cd9.tar.xz u-boot-1cefca71d237aae2c5cc2445f7698941443a2cd9.zip |
mtd: nand: Arasan: Add subpage configuration support
Add support for disabling subpage write support via
CONFIG_SYS_NAND_NO_SUBPAGE_WRITE.
Currently the Linux Arasan driver does not support subpage writes and in
case of running UBI and accessing the same UBI volume from both U-Boot
and Linux it is required to have the same subpage write configuration
else the location of the UBI headers (EC + VID) will be misaligned
(subpage vs page) and incompatible. Hence the need for disabling
subpage write support in the U-Boot Arasan NAND driver.
Signed-off-by: Martin Lund <malu@gomspace.com>
Acked-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/raw/arasan_nfc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c index 41db9f8bb9..dc531ccb68 100644 --- a/drivers/mtd/nand/raw/arasan_nfc.c +++ b/drivers/mtd/nand/raw/arasan_nfc.c @@ -1201,6 +1201,10 @@ static int arasan_nand_init(struct nand_chip *nand_chip, int devnum) mtd = nand_to_mtd(nand_chip); nand_set_controller_data(nand_chip, nand); +#ifdef CONFIG_SYS_NAND_NO_SUBPAGE_WRITE + nand_chip->options |= NAND_NO_SUBPAGE_WRITE; +#endif + /* Set the driver entry points for MTD */ nand_chip->cmdfunc = arasan_nand_cmd_function; nand_chip->select_chip = arasan_nand_select_chip; |