]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4803badf8e671abaefe68fed70f6e0a3202da2e
tree0ee47ccd841fbc340dec54864d2f40810bfa589a
parentaf4476fcbf249737dfbacd6b38128a816da5056b
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