[MTD] [NAND] pxa3xx_nand: allow to define flash types in the platform data
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Fri, 29 Aug 2008 10:59:48 +0000 (12:59 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 1 Sep 2008 20:31:34 +0000 (21:31 +0100)
commitc8ac3f818e1183eab8d08a41b01b6078c5df4b43
tree3a3bbb4d0a1203226db38ae17b7c6cfb3e624e9f
parent43035338ad772b6a4097b2ac530b75390bee87c1
[MTD] [NAND] pxa3xx_nand: allow to define flash types in the platform data

This patch adds 'flash' and 'num_flash' attributes to the platform data.
There was added code in the driver to iterate across these attributes in the
detect-flash routine.  This is done similarly to the existing method
which uses a 'builtin_flash_types' field.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
arch/arm/mach-pxa/include/mach/pxa3xx_nand.h
drivers/mtd/nand/pxa3xx_nand.c