mtd: mxc_nand: configure pages per block for v2 controller
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 9 Aug 2010 13:04:19 +0000 (15:04 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 13 Sep 2010 07:50:34 +0000 (08:50 +0100)
commitb8db2f51dcccbaf4d23ed44cd0c64856c58a16c0
tree0ee47ccd841fbc340dec54864d2f40810bfa589a
parent53d1e137d5ddd8a1c5ec54c5375cb2832e1cbcd1
mtd: mxc_nand: configure pages per block for v2 controller

This patch initializes the pages per block field in CONFIG1 for
v2 controllers. It also sets the FP_INT field. This is the last
field not correctly initialized, so we can switch from
read/modify/write the CONFIG1 reg to just write the correct
value.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: John Ogness <john.ogness@linutronix.de>
Tested-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c