aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2008-08-29 06:59:51 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-09-01 16:38:34 -0400
commitc8c17c888d936c58ceb28b084a6272d67e10ea28 (patch)
tree6aaf879d3ef5f35c287ac0b78d521ad432712519 /arch/arm/mach-pxa
parent7dad482ed0648a40e403d1ed44e0ea92248632f1 (diff)
[MTD] [NAND] pxa3xx_nand: moved some helper variables out from platform data
This patch moves some attributes out from the platform data into the dynamically created nand device. This results into a cleaner interface and allows to use constant pxa3xx_nand_flash definitions. 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.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h b/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h
index cfcb2e21aeeb..eb35fca9aea5 100644
--- a/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h
+++ b/arch/arm/mach-pxa/include/mach/pxa3xx_nand.h
@@ -39,13 +39,6 @@ struct pxa3xx_nand_flash {
39 uint32_t dfc_width; /* Width of flash controller(DWIDTH_C) */ 39 uint32_t dfc_width; /* Width of flash controller(DWIDTH_C) */
40 uint32_t num_blocks; /* Number of physical blocks in Flash */ 40 uint32_t num_blocks; /* Number of physical blocks in Flash */
41 uint32_t chip_id; 41 uint32_t chip_id;
42
43 /* NOTE: these are automatically calculated, do not define */
44 size_t oob_size;
45 size_t read_id_bytes;
46
47 unsigned int col_addr_cycles;
48 unsigned int row_addr_cycles;
49}; 42};
50 43
51struct pxa3xx_nand_platform_data { 44struct pxa3xx_nand_platform_data {
@@ -59,7 +52,7 @@ struct pxa3xx_nand_platform_data {
59 const struct mtd_partition *parts; 52 const struct mtd_partition *parts;
60 unsigned int nr_parts; 53 unsigned int nr_parts;
61 54
62 struct pxa3xx_nand_flash * const flash; 55 const struct pxa3xx_nand_flash * flash;
63 size_t num_flash; 56 size_t num_flash;
64}; 57};
65 58