aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2008-08-29 06:59:48 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-09-01 16:31:34 -0400
commitc8ac3f818e1183eab8d08a41b01b6078c5df4b43 (patch)
tree3a3bbb4d0a1203226db38ae17b7c6cfb3e624e9f /arch/arm/mach-pxa
parent43035338ad772b6a4097b2ac530b75390bee87c1 (diff)
[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>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/include/mach/pxa3xx_nand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h b/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h
index 0dc50d82ea73..6ac9aea0b0b5 100644
--- a/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h
+++ b/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h
@@ -58,6 +58,9 @@ struct pxa3xx_nand_platform_data {
58 58
59 struct mtd_partition *parts; 59 struct mtd_partition *parts;
60 unsigned int nr_parts; 60 unsigned int nr_parts;
61
62 struct pxa3xx_nand_flash * const flash;
63 size_t num_flash;
61}; 64};
62 65
63extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info); 66extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info);