aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2440
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2009-09-28 06:59:49 -0400
committerBen Dooks <ben-linux@fluff.org>2009-11-30 20:34:16 -0500
commit2a3a18045b136487b22733d57410e6dccd34ac84 (patch)
tree4152d54029bd5c82e210dacbbba3b7629c14ca3c /arch/arm/mach-s3c2440
parentff34aaa9535afc46b017f7a9b553dbf3e0ad5084 (diff)
ARM: S3C: Add NAND device platform data set call
Diffstat (limited to 'arch/arm/mach-s3c2440')
-rw-r--r--arch/arm/mach-s3c2440/mach-anubis.c12
-rw-r--r--arch/arm/mach-s3c2440/mach-at2440evb.c8
-rw-r--r--arch/arm/mach-s3c2440/mach-mini2440.c4
-rw-r--r--arch/arm/mach-s3c2440/mach-osiris.c11
-rw-r--r--arch/arm/mach-s3c2440/mach-rx3715.c9
5 files changed, 22 insertions, 22 deletions
diff --git a/arch/arm/mach-s3c2440/mach-anubis.c b/arch/arm/mach-s3c2440/mach-anubis.c
index 68f3870991b..5f5dccf306a 100644
--- a/arch/arm/mach-s3c2440/mach-anubis.c
+++ b/arch/arm/mach-s3c2440/mach-anubis.c
@@ -138,7 +138,7 @@ static int external_map[] = { 2 };
138static int chip0_map[] = { 0 }; 138static int chip0_map[] = { 0 };
139static int chip1_map[] = { 1 }; 139static int chip1_map[] = { 1 };
140 140
141static struct mtd_partition anubis_default_nand_part[] = { 141static struct mtd_partition __initdata anubis_default_nand_part[] = {
142 [0] = { 142 [0] = {
143 .name = "Boot Agent", 143 .name = "Boot Agent",
144 .size = SZ_16K, 144 .size = SZ_16K,
@@ -161,7 +161,7 @@ static struct mtd_partition anubis_default_nand_part[] = {
161 } 161 }
162}; 162};
163 163
164static struct mtd_partition anubis_default_nand_part_large[] = { 164static struct mtd_partition __initdata anubis_default_nand_part_large[] = {
165 [0] = { 165 [0] = {
166 .name = "Boot Agent", 166 .name = "Boot Agent",
167 .size = SZ_128K, 167 .size = SZ_128K,
@@ -191,7 +191,7 @@ static struct mtd_partition anubis_default_nand_part_large[] = {
191 * socket. 191 * socket.
192*/ 192*/
193 193
194static struct s3c2410_nand_set anubis_nand_sets[] = { 194static struct s3c2410_nand_set __initdata anubis_nand_sets[] = {
195 [1] = { 195 [1] = {
196 .name = "External", 196 .name = "External",
197 .nr_chips = 1, 197 .nr_chips = 1,
@@ -233,7 +233,7 @@ static void anubis_nand_select(struct s3c2410_nand_set *set, int slot)
233 __raw_writeb(tmp, ANUBIS_VA_CTRL1); 233 __raw_writeb(tmp, ANUBIS_VA_CTRL1);
234} 234}
235 235
236static struct s3c2410_platform_nand anubis_nand_info = { 236static struct s3c2410_platform_nand __initdata anubis_nand_info = {
237 .tacls = 25, 237 .tacls = 25,
238 .twrph0 = 55, 238 .twrph0 = 55,
239 .twrph1 = 40, 239 .twrph1 = 40,
@@ -454,8 +454,6 @@ static void __init anubis_map_io(void)
454 454
455 s3c24xx_register_clocks(anubis_clocks, ARRAY_SIZE(anubis_clocks)); 455 s3c24xx_register_clocks(anubis_clocks, ARRAY_SIZE(anubis_clocks));
456 456
457 s3c_device_nand.dev.platform_data = &anubis_nand_info;
458
459 s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc)); 457 s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc));
460 s3c24xx_init_clocks(0); 458 s3c24xx_init_clocks(0);
461 s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs)); 459 s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs));
@@ -476,6 +474,8 @@ static void __init anubis_map_io(void)
476static void __init anubis_init(void) 474static void __init anubis_init(void)
477{ 475{
478 s3c_i2c0_set_platdata(NULL); 476 s3c_i2c0_set_platdata(NULL);
477 s3c_nand_set_platdata(&anubis_nand_info);
478
479 platform_add_devices(anubis_devices, ARRAY_SIZE(anubis_devices)); 479 platform_add_devices(anubis_devices, ARRAY_SIZE(anubis_devices));
480 480
481 i2c_register_board_info(0, anubis_i2c_devs, 481 i2c_register_board_info(0, anubis_i2c_devs,
diff --git a/arch/arm/mach-s3c2440/mach-at2440evb.c b/arch/arm/mach-s3c2440/mach-at2440evb.c
index dfc7010935d..d73ef9ac202 100644
--- a/arch/arm/mach-s3c2440/mach-at2440evb.c
+++ b/arch/arm/mach-s3c2440/mach-at2440evb.c
@@ -96,7 +96,7 @@ static struct s3c2410_uartcfg at2440evb_uartcfgs[] __initdata = {
96 96
97/* NAND Flash on AT2440EVB board */ 97/* NAND Flash on AT2440EVB board */
98 98
99static struct mtd_partition at2440evb_default_nand_part[] = { 99static struct mtd_partition __initdata at2440evb_default_nand_part[] = {
100 [0] = { 100 [0] = {
101 .name = "Boot Agent", 101 .name = "Boot Agent",
102 .size = SZ_256K, 102 .size = SZ_256K,
@@ -114,7 +114,7 @@ static struct mtd_partition at2440evb_default_nand_part[] = {
114 }, 114 },
115}; 115};
116 116
117static struct s3c2410_nand_set at2440evb_nand_sets[] = { 117static struct s3c2410_nand_set __initdata at2440evb_nand_sets[] = {
118 [0] = { 118 [0] = {
119 .name = "nand", 119 .name = "nand",
120 .nr_chips = 1, 120 .nr_chips = 1,
@@ -123,7 +123,7 @@ static struct s3c2410_nand_set at2440evb_nand_sets[] = {
123 }, 123 },
124}; 124};
125 125
126static struct s3c2410_platform_nand at2440evb_nand_info = { 126static struct s3c2410_platform_nand __initdata at2440evb_nand_info = {
127 .tacls = 25, 127 .tacls = 25,
128 .twrph0 = 55, 128 .twrph0 = 55,
129 .twrph1 = 40, 129 .twrph1 = 40,
@@ -216,7 +216,6 @@ static struct platform_device *at2440evb_devices[] __initdata = {
216 216
217static void __init at2440evb_map_io(void) 217static void __init at2440evb_map_io(void)
218{ 218{
219 s3c_device_nand.dev.platform_data = &at2440evb_nand_info;
220 s3c_device_sdi.name = "s3c2440-sdi"; 219 s3c_device_sdi.name = "s3c2440-sdi";
221 s3c_device_sdi.dev.platform_data = &at2440evb_mci_pdata; 220 s3c_device_sdi.dev.platform_data = &at2440evb_mci_pdata;
222 221
@@ -228,6 +227,7 @@ static void __init at2440evb_map_io(void)
228static void __init at2440evb_init(void) 227static void __init at2440evb_init(void)
229{ 228{
230 s3c24xx_fb_set_platdata(&at2440evb_fb_info); 229 s3c24xx_fb_set_platdata(&at2440evb_fb_info);
230 s3c_nand_set_platdata(&at2440evb_nand_info);
231 s3c_i2c0_set_platdata(NULL); 231 s3c_i2c0_set_platdata(NULL);
232 232
233 platform_add_devices(at2440evb_devices, ARRAY_SIZE(at2440evb_devices)); 233 platform_add_devices(at2440evb_devices, ARRAY_SIZE(at2440evb_devices));
diff --git a/arch/arm/mach-s3c2440/mach-mini2440.c b/arch/arm/mach-s3c2440/mach-mini2440.c
index 1c3382fefdd..547d4fc9913 100644
--- a/arch/arm/mach-s3c2440/mach-mini2440.c
+++ b/arch/arm/mach-s3c2440/mach-mini2440.c
@@ -532,7 +532,6 @@ static void __init mini2440_map_io(void)
532 s3c24xx_init_clocks(12000000); 532 s3c24xx_init_clocks(12000000);
533 s3c24xx_init_uarts(mini2440_uartcfgs, ARRAY_SIZE(mini2440_uartcfgs)); 533 s3c24xx_init_uarts(mini2440_uartcfgs, ARRAY_SIZE(mini2440_uartcfgs));
534 534
535 s3c_device_nand.dev.platform_data = &mini2440_nand_info;
536 s3c_device_sdi.dev.platform_data = &mini2440_mmc_cfg; 535 s3c_device_sdi.dev.platform_data = &mini2440_mmc_cfg;
537} 536}
538 537
@@ -677,8 +676,11 @@ static void __init mini2440_init(void)
677 printk("\n"); 676 printk("\n");
678 s3c24xx_fb_set_platdata(&mini2440_fb_info); 677 s3c24xx_fb_set_platdata(&mini2440_fb_info);
679 } 678 }
679
680 s3c24xx_udc_set_platdata(&mini2440_udc_cfg); 680 s3c24xx_udc_set_platdata(&mini2440_udc_cfg);
681 s3c_nand_set_platdata(&mini2440_nand_info);
681 s3c_i2c0_set_platdata(NULL); 682 s3c_i2c0_set_platdata(NULL);
683
682 i2c_register_board_info(0, mini2440_i2c_devs, 684 i2c_register_board_info(0, mini2440_i2c_devs,
683 ARRAY_SIZE(mini2440_i2c_devs)); 685 ARRAY_SIZE(mini2440_i2c_devs));
684 686
diff --git a/arch/arm/mach-s3c2440/mach-osiris.c b/arch/arm/mach-s3c2440/mach-osiris.c
index 2105a41281a..468a0ea3708 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 };
148static int chip0_map[] = { 0 }; 148static int chip0_map[] = { 0 };
149static int chip1_map[] = { 1 }; 149static int chip1_map[] = { 1 };
150 150
151static struct mtd_partition osiris_default_nand_part[] = { 151static 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
174static struct mtd_partition osiris_default_nand_part_large[] = { 174static 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
204static struct s3c2410_nand_set osiris_nand_sets[] = { 204static 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
246static struct s3c2410_platform_nand osiris_nand_info = { 246static 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
diff --git a/arch/arm/mach-s3c2440/mach-rx3715.c b/arch/arm/mach-s3c2440/mach-rx3715.c
index bc8d8d1ebd1..d77b8837b12 100644
--- a/arch/arm/mach-s3c2440/mach-rx3715.c
+++ b/arch/arm/mach-s3c2440/mach-rx3715.c
@@ -149,7 +149,7 @@ static struct s3c2410fb_mach_info rx3715_fb_info __initdata = {
149 .gpdup_mask = 0xffffffff, 149 .gpdup_mask = 0xffffffff,
150}; 150};
151 151
152static struct mtd_partition rx3715_nand_part[] = { 152static struct mtd_partition __initdata rx3715_nand_part[] = {
153 [0] = { 153 [0] = {
154 .name = "Whole Flash", 154 .name = "Whole Flash",
155 .offset = 0, 155 .offset = 0,
@@ -158,7 +158,7 @@ static struct mtd_partition rx3715_nand_part[] = {
158 } 158 }
159}; 159};
160 160
161static struct s3c2410_nand_set rx3715_nand_sets[] = { 161static struct s3c2410_nand_set __initdata rx3715_nand_sets[] = {
162 [0] = { 162 [0] = {
163 .name = "Internal", 163 .name = "Internal",
164 .nr_chips = 1, 164 .nr_chips = 1,
@@ -167,7 +167,7 @@ static struct s3c2410_nand_set rx3715_nand_sets[] = {
167 }, 167 },
168}; 168};
169 169
170static struct s3c2410_platform_nand rx3715_nand_info = { 170static struct s3c2410_platform_nand __initdata rx3715_nand_info = {
171 .tacls = 25, 171 .tacls = 25,
172 .twrph0 = 50, 172 .twrph0 = 50,
173 .twrph1 = 15, 173 .twrph1 = 15,
@@ -186,8 +186,6 @@ static struct platform_device *rx3715_devices[] __initdata = {
186 186
187static void __init rx3715_map_io(void) 187static void __init rx3715_map_io(void)
188{ 188{
189 s3c_device_nand.dev.platform_data = &rx3715_nand_info;
190
191 s3c24xx_init_io(rx3715_iodesc, ARRAY_SIZE(rx3715_iodesc)); 189 s3c24xx_init_io(rx3715_iodesc, ARRAY_SIZE(rx3715_iodesc));
192 s3c24xx_init_clocks(16934000); 190 s3c24xx_init_clocks(16934000);
193 s3c24xx_init_uarts(rx3715_uartcfgs, ARRAY_SIZE(rx3715_uartcfgs)); 191 s3c24xx_init_uarts(rx3715_uartcfgs, ARRAY_SIZE(rx3715_uartcfgs));
@@ -205,6 +203,7 @@ static void __init rx3715_init_machine(void)
205#endif 203#endif
206 s3c_pm_init(); 204 s3c_pm_init();
207 205
206 s3c_nand_set_platdata(&rx3715_nand_info);
208 s3c24xx_fb_set_platdata(&rx3715_fb_info); 207 s3c24xx_fb_set_platdata(&rx3715_fb_info);
209 platform_add_devices(rx3715_devices, ARRAY_SIZE(rx3715_devices)); 208 platform_add_devices(rx3715_devices, ARRAY_SIZE(rx3715_devices));
210} 209}