aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-w90x900/mach-w90p910evb.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/mach-w90p910evb.c b/arch/arm/mach-w90x900/mach-w90p910evb.c
index 3b9fa312d9f5..2e56d84c6323 100644
--- a/arch/arm/mach-w90x900/mach-w90p910evb.c
+++ b/arch/arm/mach-w90x900/mach-w90p910evb.c
@@ -250,6 +250,38 @@ static struct platform_device w90p910_device_fmi = {
250 .resource = w90p910_fmi_resource, 250 .resource = w90p910_fmi_resource,
251}; 251};
252 252
253/* MAC device */
254
255static struct resource w90x900_emc_resource[] = {
256 [0] = {
257 .start = W90X900_PA_EMC,
258 .end = W90X900_PA_EMC + W90X900_SZ_EMC - 1,
259 .flags = IORESOURCE_MEM,
260 },
261 [1] = {
262 .start = IRQ_EMCTX,
263 .end = IRQ_EMCTX,
264 .flags = IORESOURCE_IRQ,
265 },
266 [2] = {
267 .start = IRQ_EMCRX,
268 .end = IRQ_EMCRX,
269 .flags = IORESOURCE_IRQ,
270 }
271};
272
273static u64 w90x900_device_emc_dmamask = 0xffffffffUL;
274static struct platform_device w90p910_device_emc = {
275 .name = "w90p910-emc",
276 .id = -1,
277 .num_resources = ARRAY_SIZE(w90x900_emc_resource),
278 .resource = w90x900_emc_resource,
279 .dev = {
280 .dma_mask = &w90x900_device_emc_dmamask,
281 .coherent_dma_mask = 0xffffffffUL
282 }
283};
284
253static struct map_desc w90p910_iodesc[] __initdata = { 285static struct map_desc w90p910_iodesc[] __initdata = {
254}; 286};
255 287
@@ -265,6 +297,7 @@ static struct platform_device *w90p910evb_dev[] __initdata = {
265 &w90x900_device_kpi, 297 &w90x900_device_kpi,
266 &w90x900_device_usbgadget, 298 &w90x900_device_usbgadget,
267 &w90p910_device_fmi, 299 &w90p910_device_fmi,
300 &w90p910_device_emc,
268}; 301};
269 302
270static void __init w90p910evb_map_io(void) 303static void __init w90p910evb_map_io(void)