aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/devices.c')
-rw-r--r--arch/arm/mach-pxa/devices.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index 202d048f1cdd..bc04e87ed3b4 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -549,4 +549,44 @@ struct platform_device pxa3xx_device_ssp4 = {
549 .resource = pxa3xx_resource_ssp4, 549 .resource = pxa3xx_resource_ssp4,
550 .num_resources = ARRAY_SIZE(pxa3xx_resource_ssp4), 550 .num_resources = ARRAY_SIZE(pxa3xx_resource_ssp4),
551}; 551};
552
553static struct resource pxa3xx_resources_mci2[] = {
554 [0] = {
555 .start = 0x42000000,
556 .end = 0x42000fff,
557 .flags = IORESOURCE_MEM,
558 },
559 [1] = {
560 .start = IRQ_MMC2,
561 .end = IRQ_MMC2,
562 .flags = IORESOURCE_IRQ,
563 },
564 [2] = {
565 .start = 93,
566 .end = 93,
567 .flags = IORESOURCE_DMA,
568 },
569 [3] = {
570 .start = 94,
571 .end = 94,
572 .flags = IORESOURCE_DMA,
573 },
574};
575
576struct platform_device pxa3xx_device_mci2 = {
577 .name = "pxa2xx-mci",
578 .id = 1,
579 .dev = {
580 .dma_mask = &pxamci_dmamask,
581 .coherent_dma_mask = 0xffffffff,
582 },
583 .num_resources = ARRAY_SIZE(pxa3xx_resources_mci2),
584 .resource = pxa3xx_resources_mci2,
585};
586
587void __init pxa3xx_set_mci2_info(struct pxamci_platform_data *info)
588{
589 pxa_register_device(&pxa3xx_device_mci2, info);
590}
591
552#endif /* CONFIG_PXA3xx */ 592#endif /* CONFIG_PXA3xx */