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/mach-bast.c | |
parent | ff34aaa9535afc46b017f7a9b553dbf3e0ad5084 (diff) |
ARM: S3C: Add NAND device platform data set call
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-bast.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-bast.c | 8 |
1 files changed, 4 insertions, 4 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 | ||