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-vr1000.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-vr1000.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-vr1000.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/arch/arm/mach-s3c2410/mach-vr1000.c b/arch/arm/mach-s3c2410/mach-vr1000.c index 1d0a0284f33..f133ccfc359 100644 --- a/arch/arm/mach-s3c2410/mach-vr1000.c +++ b/arch/arm/mach-s3c2410/mach-vr1000.c | |||
@@ -46,7 +46,9 @@ | |||
46 | #include <asm/plat-s3c24xx/clock.h> | 46 | #include <asm/plat-s3c24xx/clock.h> |
47 | #include <asm/plat-s3c24xx/devs.h> | 47 | #include <asm/plat-s3c24xx/devs.h> |
48 | #include <asm/plat-s3c24xx/cpu.h> | 48 | #include <asm/plat-s3c24xx/cpu.h> |
49 | |||
49 | #include "usb-simtec.h" | 50 | #include "usb-simtec.h" |
51 | #include "nor-simtec.h" | ||
50 | 52 | ||
51 | /* macros for virtual address mods for the io space entries */ | 53 | /* macros for virtual address mods for the io space entries */ |
52 | #define VA_C5(item) ((unsigned long)(item) + BAST_VAM_CS5) | 54 | #define VA_C5(item) ((unsigned long)(item) + BAST_VAM_CS5) |
@@ -202,23 +204,6 @@ static struct platform_device serial_device = { | |||
202 | }, | 204 | }, |
203 | }; | 205 | }; |
204 | 206 | ||
205 | /* MTD NOR Flash */ | ||
206 | |||
207 | static struct resource vr1000_nor_resource[] = { | ||
208 | [0] = { | ||
209 | .start = S3C2410_CS1 + 0x4000000, | ||
210 | .end = S3C2410_CS1 + 0x4000000 + SZ_16M - 1, | ||
211 | .flags = IORESOURCE_MEM, | ||
212 | } | ||
213 | }; | ||
214 | |||
215 | static struct platform_device vr1000_nor = { | ||
216 | .name = "bast-nor", | ||
217 | .id = -1, | ||
218 | .num_resources = ARRAY_SIZE(vr1000_nor_resource), | ||
219 | .resource = vr1000_nor_resource, | ||
220 | }; | ||
221 | |||
222 | /* DM9000 ethernet devices */ | 207 | /* DM9000 ethernet devices */ |
223 | 208 | ||
224 | static struct resource vr1000_dm9k0_resource[] = { | 209 | static struct resource vr1000_dm9k0_resource[] = { |
@@ -339,7 +324,6 @@ static struct platform_device *vr1000_devices[] __initdata = { | |||
339 | &s3c_device_i2c, | 324 | &s3c_device_i2c, |
340 | &s3c_device_adc, | 325 | &s3c_device_adc, |
341 | &serial_device, | 326 | &serial_device, |
342 | &vr1000_nor, | ||
343 | &vr1000_dm9k0, | 327 | &vr1000_dm9k0, |
344 | &vr1000_dm9k1, | 328 | &vr1000_dm9k1, |
345 | &vr1000_led1, | 329 | &vr1000_led1, |
@@ -388,6 +372,8 @@ static void __init vr1000_map_io(void) | |||
388 | static void __init vr1000_init(void) | 372 | static void __init vr1000_init(void) |
389 | { | 373 | { |
390 | platform_add_devices(vr1000_devices, ARRAY_SIZE(vr1000_devices)); | 374 | platform_add_devices(vr1000_devices, ARRAY_SIZE(vr1000_devices)); |
375 | |||
376 | nor_simtec_init(); | ||
391 | } | 377 | } |
392 | 378 | ||
393 | MACHINE_START(VR1000, "Thorcom-VR1000") | 379 | MACHINE_START(VR1000, "Thorcom-VR1000") |