diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-07-03 06:24:39 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-07-03 11:51:28 -0400 |
commit | 9d529c6e7b73088551057445763b2be755a3b82f (patch) | |
tree | eb2784455bdeb0e286c1518a1a1bdc238d7a6767 /arch/arm/mach-s3c2410/mach-bast.c | |
parent | b9db83af69e4c61107803c85872d01a45949e052 (diff) |
[ARM] S3C24XX: Add physmap device for all Simtec NOR equiped boards.
Move to using the physmap platform device code to attached NOR
flash on Simtec boards so that the old bast-flash driver can be
safely removed.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-bast.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-bast.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 093be00c8eb5..2a512e863141 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -57,7 +57,9 @@ | |||
57 | #include <asm/plat-s3c24xx/clock.h> | 57 | #include <asm/plat-s3c24xx/clock.h> |
58 | #include <asm/plat-s3c24xx/devs.h> | 58 | #include <asm/plat-s3c24xx/devs.h> |
59 | #include <asm/plat-s3c24xx/cpu.h> | 59 | #include <asm/plat-s3c24xx/cpu.h> |
60 | |||
60 | #include "usb-simtec.h" | 61 | #include "usb-simtec.h" |
62 | #include "nor-simtec.h" | ||
61 | 63 | ||
62 | #define COPYRIGHT ", (c) 2004-2005 Simtec Electronics" | 64 | #define COPYRIGHT ", (c) 2004-2005 Simtec Electronics" |
63 | 65 | ||
@@ -203,23 +205,6 @@ static struct s3c2410_uartcfg bast_uartcfgs[] __initdata = { | |||
203 | } | 205 | } |
204 | }; | 206 | }; |
205 | 207 | ||
206 | /* NOR Flash on BAST board */ | ||
207 | |||
208 | static struct resource bast_nor_resource[] = { | ||
209 | [0] = { | ||
210 | .start = S3C2410_CS1 + 0x4000000, | ||
211 | .end = S3C2410_CS1 + 0x4000000 + (32*1024*1024) - 1, | ||
212 | .flags = IORESOURCE_MEM, | ||
213 | } | ||
214 | }; | ||
215 | |||
216 | static struct platform_device bast_device_nor = { | ||
217 | .name = "bast-nor", | ||
218 | .id = -1, | ||
219 | .num_resources = ARRAY_SIZE(bast_nor_resource), | ||
220 | .resource = bast_nor_resource, | ||
221 | }; | ||
222 | |||
223 | /* NAND Flash on BAST board */ | 208 | /* NAND Flash on BAST board */ |
224 | 209 | ||
225 | #ifdef CONFIG_PM | 210 | #ifdef CONFIG_PM |
@@ -559,7 +544,6 @@ static struct platform_device *bast_devices[] __initdata = { | |||
559 | &s3c_device_i2c, | 544 | &s3c_device_i2c, |
560 | &s3c_device_rtc, | 545 | &s3c_device_rtc, |
561 | &s3c_device_nand, | 546 | &s3c_device_nand, |
562 | &bast_device_nor, | ||
563 | &bast_device_dm9k, | 547 | &bast_device_dm9k, |
564 | &bast_device_asix, | 548 | &bast_device_asix, |
565 | &bast_device_axpp, | 549 | &bast_device_axpp, |
@@ -608,6 +592,8 @@ static void __init bast_init(void) | |||
608 | 592 | ||
609 | s3c24xx_fb_set_platdata(&bast_fb_info); | 593 | s3c24xx_fb_set_platdata(&bast_fb_info); |
610 | platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); | 594 | platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); |
595 | |||
596 | nor_simtec_init(); | ||
611 | } | 597 | } |
612 | 598 | ||
613 | MACHINE_START(BAST, "Simtec-BAST") | 599 | MACHINE_START(BAST, "Simtec-BAST") |