diff options
author | Ben Dooks <ben-linux@fluff.org> | 2009-09-28 06:59:49 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-11-30 20:34:16 -0500 |
commit | 2a3a18045b136487b22733d57410e6dccd34ac84 (patch) | |
tree | 4152d54029bd5c82e210dacbbba3b7629c14ca3c /arch/arm/mach-s3c2440/mach-osiris.c | |
parent | ff34aaa9535afc46b017f7a9b553dbf3e0ad5084 (diff) |
ARM: S3C: Add NAND device platform data set call
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-osiris.c')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-osiris.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/mach-s3c2440/mach-osiris.c b/arch/arm/mach-s3c2440/mach-osiris.c index 2105a41281a4..468a0ea3708b 100644 --- a/arch/arm/mach-s3c2440/mach-osiris.c +++ b/arch/arm/mach-s3c2440/mach-osiris.c | |||
@@ -148,7 +148,7 @@ static int external_map[] = { 2 }; | |||
148 | static int chip0_map[] = { 0 }; | 148 | static int chip0_map[] = { 0 }; |
149 | static int chip1_map[] = { 1 }; | 149 | static int chip1_map[] = { 1 }; |
150 | 150 | ||
151 | static struct mtd_partition osiris_default_nand_part[] = { | 151 | static struct mtd_partition __initdata osiris_default_nand_part[] = { |
152 | [0] = { | 152 | [0] = { |
153 | .name = "Boot Agent", | 153 | .name = "Boot Agent", |
154 | .size = SZ_16K, | 154 | .size = SZ_16K, |
@@ -171,7 +171,7 @@ static struct mtd_partition osiris_default_nand_part[] = { | |||
171 | } | 171 | } |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static struct mtd_partition osiris_default_nand_part_large[] = { | 174 | static struct mtd_partition __initdata osiris_default_nand_part_large[] = { |
175 | [0] = { | 175 | [0] = { |
176 | .name = "Boot Agent", | 176 | .name = "Boot Agent", |
177 | .size = SZ_128K, | 177 | .size = SZ_128K, |
@@ -201,7 +201,7 @@ static struct mtd_partition osiris_default_nand_part_large[] = { | |||
201 | * socket. | 201 | * socket. |
202 | */ | 202 | */ |
203 | 203 | ||
204 | static struct s3c2410_nand_set osiris_nand_sets[] = { | 204 | static struct s3c2410_nand_set __initdata osiris_nand_sets[] = { |
205 | [1] = { | 205 | [1] = { |
206 | .name = "External", | 206 | .name = "External", |
207 | .nr_chips = 1, | 207 | .nr_chips = 1, |
@@ -243,7 +243,7 @@ static void osiris_nand_select(struct s3c2410_nand_set *set, int slot) | |||
243 | __raw_writeb(tmp, OSIRIS_VA_CTRL0); | 243 | __raw_writeb(tmp, OSIRIS_VA_CTRL0); |
244 | } | 244 | } |
245 | 245 | ||
246 | static struct s3c2410_platform_nand osiris_nand_info = { | 246 | static struct s3c2410_platform_nand __initdata osiris_nand_info = { |
247 | .tacls = 25, | 247 | .tacls = 25, |
248 | .twrph0 = 60, | 248 | .twrph0 = 60, |
249 | .twrph1 = 60, | 249 | .twrph1 = 60, |
@@ -377,8 +377,6 @@ static void __init osiris_map_io(void) | |||
377 | 377 | ||
378 | s3c24xx_register_clocks(osiris_clocks, ARRAY_SIZE(osiris_clocks)); | 378 | s3c24xx_register_clocks(osiris_clocks, ARRAY_SIZE(osiris_clocks)); |
379 | 379 | ||
380 | s3c_device_nand.dev.platform_data = &osiris_nand_info; | ||
381 | |||
382 | s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc)); | 380 | s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc)); |
383 | s3c24xx_init_clocks(0); | 381 | s3c24xx_init_clocks(0); |
384 | s3c24xx_init_uarts(osiris_uartcfgs, ARRAY_SIZE(osiris_uartcfgs)); | 382 | s3c24xx_init_uarts(osiris_uartcfgs, ARRAY_SIZE(osiris_uartcfgs)); |
@@ -408,6 +406,7 @@ static void __init osiris_init(void) | |||
408 | sysdev_register(&osiris_pm_sysdev); | 406 | sysdev_register(&osiris_pm_sysdev); |
409 | 407 | ||
410 | s3c_i2c0_set_platdata(NULL); | 408 | s3c_i2c0_set_platdata(NULL); |
409 | s3c_nand_set_platdata(&osiris_nand_info); | ||
411 | 410 | ||
412 | s3c_cpufreq_setboard(&osiris_cpufreq); | 411 | s3c_cpufreq_setboard(&osiris_cpufreq); |
413 | 412 | ||