diff options
Diffstat (limited to 'arch/arm/mach-realview/realview_pb11mp.c')
-rw-r--r-- | arch/arm/mach-realview/realview_pb11mp.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/arch/arm/mach-realview/realview_pb11mp.c b/arch/arm/mach-realview/realview_pb11mp.c index 3ebdb2dadd6f..ea1e60eca359 100644 --- a/arch/arm/mach-realview/realview_pb11mp.c +++ b/arch/arm/mach-realview/realview_pb11mp.c | |||
@@ -230,31 +230,19 @@ static struct resource realview_pb11mp_smsc911x_resources[] = { | |||
230 | }, | 230 | }, |
231 | }; | 231 | }; |
232 | 232 | ||
233 | struct resource realview_pb11mp_cf_resources[] = { | 233 | static struct resource realview_pb11mp_isp1761_resources[] = { |
234 | [0] = { | 234 | [0] = { |
235 | .start = REALVIEW_PB11MP_CF_BASE, | 235 | .start = REALVIEW_PB11MP_USB_BASE, |
236 | .end = REALVIEW_PB11MP_CF_BASE + SZ_4K - 1, | 236 | .end = REALVIEW_PB11MP_USB_BASE + SZ_128K - 1, |
237 | .flags = IORESOURCE_MEM, | 237 | .flags = IORESOURCE_MEM, |
238 | }, | 238 | }, |
239 | [1] = { | 239 | [1] = { |
240 | .start = REALVIEW_PB11MP_CF_MEM_BASE, | 240 | .start = IRQ_TC11MP_USB, |
241 | .end = REALVIEW_PB11MP_CF_MEM_BASE + SZ_4K - 1, | 241 | .end = IRQ_TC11MP_USB, |
242 | .flags = IORESOURCE_MEM, | ||
243 | }, | ||
244 | [2] = { | ||
245 | .start = -1, /* FIXME: Find correct irq */ | ||
246 | .end = -1, | ||
247 | .flags = IORESOURCE_IRQ, | 242 | .flags = IORESOURCE_IRQ, |
248 | }, | 243 | }, |
249 | }; | 244 | }; |
250 | 245 | ||
251 | struct platform_device realview_pb11mp_cf_device = { | ||
252 | .name = "compactflash", | ||
253 | .id = 0, | ||
254 | .num_resources = ARRAY_SIZE(realview_pb11mp_cf_resources), | ||
255 | .resource = realview_pb11mp_cf_resources, | ||
256 | }; | ||
257 | |||
258 | static void __init gic_init_irq(void) | 246 | static void __init gic_init_irq(void) |
259 | { | 247 | { |
260 | unsigned int pldctrl; | 248 | unsigned int pldctrl; |
@@ -308,7 +296,8 @@ static void __init realview_pb11mp_init(void) | |||
308 | ARRAY_SIZE(realview_pb11mp_flash_resource)); | 296 | ARRAY_SIZE(realview_pb11mp_flash_resource)); |
309 | realview_eth_register(NULL, realview_pb11mp_smsc911x_resources); | 297 | realview_eth_register(NULL, realview_pb11mp_smsc911x_resources); |
310 | platform_device_register(&realview_i2c_device); | 298 | platform_device_register(&realview_i2c_device); |
311 | platform_device_register(&realview_pb11mp_cf_device); | 299 | platform_device_register(&realview_cf_device); |
300 | realview_usb_register(realview_pb11mp_isp1761_resources); | ||
312 | 301 | ||
313 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | 302 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { |
314 | struct amba_device *d = amba_devs[i]; | 303 | struct amba_device *d = amba_devs[i]; |