summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanchayan Maity <maitysanchayan@gmail.com>2014-11-24 11:03:59 +0530
committerScott Wood <scottwood@freescale.com>2014-11-26 19:53:49 -0600
commit226045734189690e91b7a101d22ce94793209bab (patch)
treeb7d4ffacacc19db781f522b420832132888497ff
parentf09eb52b3ffcc63b5bdaa5ca33f130491201f571 (diff)
downloadu-boot-imx-226045734189690e91b7a101d22ce94793209bab.zip
u-boot-imx-226045734189690e91b7a101d22ce94793209bab.tar.gz
u-boot-imx-226045734189690e91b7a101d22ce94793209bab.tar.bz2
mtd/nand/vf610_nfc: Disable subpage writes
This patch disables subpage writes for vf610_nfc nand driver. This is required, as without this fix, writing unaligned u-boot images with DFU results in a hang. Trying to write unalgined binary images also results in a hang, without disabling subpage writes. Patch has been tested on a Colibri VF61 module. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
-rw-r--r--drivers/mtd/nand/vf610_nfc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.c
index 7feb3a7..928d58b 100644
--- a/drivers/mtd/nand/vf610_nfc.c
+++ b/drivers/mtd/nand/vf610_nfc.c
@@ -611,6 +611,9 @@ static int vf610_nfc_nand_init(int devnum, void __iomem *addr)
vf610_nfc_clear(mtd, NFC_FLASH_CONFIG, CONFIG_16BIT);
}
+ /* Disable subpage writes as we do not provide ecc->hwctl */
+ chip->options |= NAND_NO_SUBPAGE_WRITE;
+
chip->dev_ready = vf610_nfc_dev_ready;
chip->cmdfunc = vf610_nfc_command;
chip->read_byte = vf610_nfc_read_byte;