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-s3c2410 | |
parent | ff34aaa9535afc46b017f7a9b553dbf3e0ad5084 (diff) |
ARM: S3C: Add NAND device platform data set call
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-bast.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-s3c2410/mach-qt2410.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 647c9adb018f..c1219b10b18c 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -247,7 +247,7 @@ static int chip0_map[] = { 1 }; | |||
247 | static int chip1_map[] = { 2 }; | 247 | static int chip1_map[] = { 2 }; |
248 | static int chip2_map[] = { 3 }; | 248 | static int chip2_map[] = { 3 }; |
249 | 249 | ||
250 | static struct mtd_partition bast_default_nand_part[] = { | 250 | static struct mtd_partition __initdata bast_default_nand_part[] = { |
251 | [0] = { | 251 | [0] = { |
252 | .name = "Boot Agent", | 252 | .name = "Boot Agent", |
253 | .size = SZ_16K, | 253 | .size = SZ_16K, |
@@ -273,7 +273,7 @@ static struct mtd_partition bast_default_nand_part[] = { | |||
273 | * socket. | 273 | * socket. |
274 | */ | 274 | */ |
275 | 275 | ||
276 | static struct s3c2410_nand_set bast_nand_sets[] = { | 276 | static struct s3c2410_nand_set __initdata bast_nand_sets[] = { |
277 | [0] = { | 277 | [0] = { |
278 | .name = "SmartMedia", | 278 | .name = "SmartMedia", |
279 | .nr_chips = 1, | 279 | .nr_chips = 1, |
@@ -323,7 +323,7 @@ static void bast_nand_select(struct s3c2410_nand_set *set, int slot) | |||
323 | __raw_writeb(tmp, BAST_VA_CTRL2); | 323 | __raw_writeb(tmp, BAST_VA_CTRL2); |
324 | } | 324 | } |
325 | 325 | ||
326 | static struct s3c2410_platform_nand bast_nand_info = { | 326 | static struct s3c2410_platform_nand __initdata bast_nand_info = { |
327 | .tacls = 30, | 327 | .tacls = 30, |
328 | .twrph0 = 60, | 328 | .twrph0 = 60, |
329 | .twrph1 = 60, | 329 | .twrph1 = 60, |
@@ -625,7 +625,6 @@ static void __init bast_map_io(void) | |||
625 | 625 | ||
626 | s3c24xx_register_clocks(bast_clocks, ARRAY_SIZE(bast_clocks)); | 626 | s3c24xx_register_clocks(bast_clocks, ARRAY_SIZE(bast_clocks)); |
627 | 627 | ||
628 | s3c_device_nand.dev.platform_data = &bast_nand_info; | ||
629 | s3c_device_hwmon.dev.platform_data = &bast_hwmon_info; | 628 | s3c_device_hwmon.dev.platform_data = &bast_hwmon_info; |
630 | 629 | ||
631 | s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); | 630 | s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); |
@@ -639,6 +638,7 @@ static void __init bast_init(void) | |||
639 | sysdev_register(&bast_pm_sysdev); | 638 | sysdev_register(&bast_pm_sysdev); |
640 | 639 | ||
641 | s3c_i2c0_set_platdata(&bast_i2c_info); | 640 | s3c_i2c0_set_platdata(&bast_i2c_info); |
641 | s3c_nand_set_platdata(&bast_nand_info); | ||
642 | s3c24xx_fb_set_platdata(&bast_fb_info); | 642 | s3c24xx_fb_set_platdata(&bast_fb_info); |
643 | platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); | 643 | platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); |
644 | 644 | ||
diff --git a/arch/arm/mach-s3c2410/mach-qt2410.c b/arch/arm/mach-s3c2410/mach-qt2410.c index 2cc9849eb448..ab092bcda393 100644 --- a/arch/arm/mach-s3c2410/mach-qt2410.c +++ b/arch/arm/mach-s3c2410/mach-qt2410.c | |||
@@ -258,7 +258,7 @@ static struct platform_device *qt2410_devices[] __initdata = { | |||
258 | &qt2410_led, | 258 | &qt2410_led, |
259 | }; | 259 | }; |
260 | 260 | ||
261 | static struct mtd_partition qt2410_nand_part[] = { | 261 | static struct mtd_partition __initdata qt2410_nand_part[] = { |
262 | [0] = { | 262 | [0] = { |
263 | .name = "U-Boot", | 263 | .name = "U-Boot", |
264 | .size = 0x30000, | 264 | .size = 0x30000, |
@@ -286,7 +286,7 @@ static struct mtd_partition qt2410_nand_part[] = { | |||
286 | }, | 286 | }, |
287 | }; | 287 | }; |
288 | 288 | ||
289 | static struct s3c2410_nand_set qt2410_nand_sets[] = { | 289 | static struct s3c2410_nand_set __initdata qt2410_nand_sets[] = { |
290 | [0] = { | 290 | [0] = { |
291 | .name = "NAND", | 291 | .name = "NAND", |
292 | .nr_chips = 1, | 292 | .nr_chips = 1, |
@@ -299,7 +299,7 @@ static struct s3c2410_nand_set qt2410_nand_sets[] = { | |||
299 | * chips and beyond. | 299 | * chips and beyond. |
300 | */ | 300 | */ |
301 | 301 | ||
302 | static struct s3c2410_platform_nand qt2410_nand_info = { | 302 | static struct s3c2410_platform_nand __initdata qt2410_nand_info = { |
303 | .tacls = 20, | 303 | .tacls = 20, |
304 | .twrph0 = 60, | 304 | .twrph0 = 60, |
305 | .twrph1 = 20, | 305 | .twrph1 = 20, |
@@ -331,7 +331,7 @@ static void __init qt2410_map_io(void) | |||
331 | 331 | ||
332 | static void __init qt2410_machine_init(void) | 332 | static void __init qt2410_machine_init(void) |
333 | { | 333 | { |
334 | s3c_device_nand.dev.platform_data = &qt2410_nand_info; | 334 | s3c_nand_set_platdata(&qt2410_nand_info); |
335 | 335 | ||
336 | switch (tft_type) { | 336 | switch (tft_type) { |
337 | case 'p': /* production */ | 337 | case 'p': /* production */ |