mtd: denali: detect the number of banks
authorJamie Iles <jamie@jamieiles.com>
Fri, 6 May 2011 14:28:57 +0000 (15:28 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 01:02:12 +0000 (02:02 +0100)
commitc89eeda810f0ec4f0eee0206ebb79e476df9f83e
treee01415f166a82c05b1bc4e339dda8b47689716c5
parent9589bf5bed2936a159fc96c96339f15a512fdfa9
mtd: denali: detect the number of banks

Not all configurations of the Denali controller support 4 banks.  The
controller can support between 1 and 16 banks.  Detect this from the
design features register.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/denali.c
drivers/mtd/nand/denali.h