diff options
Diffstat (limited to 'arch/arm/mach-ixp23xx/roadrunner.c')
-rw-r--r-- | arch/arm/mach-ixp23xx/roadrunner.c | 22 |
1 files changed, 21 insertions, 1 deletions
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 |