mxc_nand: fix a problem writing more than 32MB
authorHelmut Raiger <helmut.raiger@hale.at>
Wed, 6 Jul 2011 17:04:41 +0000 (19:04 +0200)
committerScott Wood <scottwood@freescale.com>
Mon, 3 Oct 2011 23:35:12 +0000 (18:35 -0500)
commitb4b1e769b8f6e80219da576d45a10c9e0ca5446b
treed18583a288952707e8e1f613fabed66489b5b606
parent780f30b642177793a984cf0a3c428994a0564f88
mxc_nand: fix a problem writing more than 32MB

When writing 0x4000 to the unlockend_blkaddr register, large writes to
a 2k page NAND sometimes fail. The current kernel driver writes 0xFFFF
to this register for V2 of the nand controller.

However on an i.MX31 this also fixes writes larger than 32MB.
The datasheet is very unspecific, but (0x4000=16384)*2000
roughly fits the limits we're encountering with NAND writes.
This problem might be NAND chip specific.

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/mxc_nand.c