aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2440/mach-anubis.c
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/mach-anubis.c
parentff34aaa9535afc46b017f7a9b553dbf3e0ad5084 (diff)
ARM: S3C: Add NAND device platform data set call
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-anubis.c')
-rw-r--r--arch/arm/mach-s3c2440/mach-anubis.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-s3c2440/mach-anubis.c b/arch/arm/mach-s3c2440/mach-anubis.c
index 68f3870991bf..5f5dccf306a8 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,