diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-ixp23xx/espresso.c | 22 | ||||
-rw-r--r-- | arch/arm/mach-ixp23xx/ixdp2351.c | 22 | ||||
-rw-r--r-- | arch/arm/mach-ixp23xx/roadrunner.c | 22 |
3 files changed, 63 insertions, 3 deletions
diff --git a/arch/arm/mach-ixp23xx/espresso.c b/arch/arm/mach-ixp23xx/espresso.c index bf688c128630..dc5e489c70bc 100644 --- a/arch/arm/mach-ixp23xx/espresso.c +++ b/arch/arm/mach-ixp23xx/espresso.c | |||
@@ -53,9 +53,29 @@ static int __init espresso_pci_init(void) | |||
53 | }; | 53 | }; |
54 | subsys_initcall(espresso_pci_init); | 54 | subsys_initcall(espresso_pci_init); |
55 | 55 | ||
56 | static struct physmap_flash_data espresso_flash_data = { | ||
57 | .width = 2, | ||
58 | }; | ||
59 | |||
60 | static struct resource espresso_flash_resource = { | ||
61 | .start = 0x90000000, | ||
62 | .end = 0x92000000, | ||
63 | .flags = IORESOURCE_MEM, | ||
64 | }; | ||
65 | |||
66 | static struct platform_device espresso_flash = { | ||
67 | .name = "physmap-flash", | ||
68 | .id = 0, | ||
69 | .dev = { | ||
70 | .platform_data = &espresso_flash_data, | ||
71 | }, | ||
72 | .num_resources = 1, | ||
73 | .resource = &espresso_flash_resource, | ||
74 | }; | ||
75 | |||
56 | static void __init espresso_init(void) | 76 | static void __init espresso_init(void) |
57 | { | 77 | { |
58 | physmap_configure(0x90000000, 0x02000000, 2, NULL); | 78 | platform_device_register(&espresso_flash); |
59 | 79 | ||
60 | /* | 80 | /* |
61 | * Mark flash as writeable. | 81 | * Mark flash as writeable. |
diff --git a/arch/arm/mach-ixp23xx/ixdp2351.c b/arch/arm/mach-ixp23xx/ixdp2351.c index 00146c35daac..535b334ee045 100644 --- a/arch/arm/mach-ixp23xx/ixdp2351.c +++ b/arch/arm/mach-ixp23xx/ixdp2351.c | |||
@@ -298,9 +298,29 @@ static void __init ixdp2351_map_io(void) | |||
298 | iotable_init(ixdp2351_io_desc, ARRAY_SIZE(ixdp2351_io_desc)); | 298 | iotable_init(ixdp2351_io_desc, ARRAY_SIZE(ixdp2351_io_desc)); |
299 | } | 299 | } |
300 | 300 | ||
301 | static struct physmap_flash_data ixdp2351_flash_data = { | ||
302 | .width = 1, | ||
303 | }; | ||
304 | |||
305 | static struct resource ixdp2351_flash_resource = { | ||
306 | .start = 0x90000000, | ||
307 | .end = 0x94000000, | ||
308 | .flags = IORESOURCE_MEM, | ||
309 | }; | ||
310 | |||
311 | static struct platform_device ixdp2351_flash = { | ||
312 | .name = "physmap-flash", | ||
313 | .id = 0, | ||
314 | .dev = { | ||
315 | .platform_data = &ixdp2351_flash_data, | ||
316 | }, | ||
317 | .num_resources = 1, | ||
318 | .resource = &ixdp2351_flash_resource, | ||
319 | }; | ||
320 | |||
301 | static void __init ixdp2351_init(void) | 321 | static void __init ixdp2351_init(void) |
302 | { | 322 | { |
303 | physmap_configure(0x90000000, 0x04000000, 1, NULL); | 323 | platform_device_register(&ixdp2351_flash); |
304 | 324 | ||
305 | /* | 325 | /* |
306 | * Mark flash as writeable | 326 | * Mark flash as writeable |
diff --git a/arch/arm/mach-ixp23xx/roadrunner.c b/arch/arm/mach-ixp23xx/roadrunner.c index 43c14e740794..b9f5d13fcfe1 100644 --- a/arch/arm/mach-ixp23xx/roadrunner.c +++ b/arch/arm/mach-ixp23xx/roadrunner.c | |||
@@ -137,9 +137,29 @@ static int __init roadrunner_pci_init(void) | |||
137 | 137 | ||
138 | subsys_initcall(roadrunner_pci_init); | 138 | subsys_initcall(roadrunner_pci_init); |
139 | 139 | ||
140 | static struct physmap_flash_data roadrunner_flash_data = { | ||
141 | .width = 2, | ||
142 | }; | ||
143 | |||
144 | static struct resource roadrunner_flash_resource = { | ||
145 | .start = 0x90000000, | ||
146 | .end = 0x94000000, | ||
147 | .flags = IORESOURCE_MEM, | ||
148 | }; | ||
149 | |||
150 | static struct platform_device roadrunner_flash = { | ||
151 | .name = "physmap-flash", | ||
152 | .id = 0, | ||
153 | .dev = { | ||
154 | .platform_data = &roadrunner_flash_data, | ||
155 | }, | ||
156 | .num_resources = 1, | ||
157 | .resource = &roadrunner_flash_resource, | ||
158 | }; | ||
159 | |||
140 | static void __init roadrunner_init(void) | 160 | static void __init roadrunner_init(void) |
141 | { | 161 | { |
142 | physmap_configure(0x90000000, 0x04000000, 2, NULL); | 162 | platform_device_register(&roadrunner_flash); |
143 | 163 | ||
144 | /* | 164 | /* |
145 | * Mark flash as writeable | 165 | * Mark flash as writeable |