diff options
author | Bridge Wu <bridge.wu@marvell.com> | 2007-12-21 06:27:08 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-26 10:07:53 -0500 |
commit | 5a1f21b1e546fafe840944f02949c1a8a8725132 (patch) | |
tree | 0d91ffd374c961507f6579b249c4ad9aa75e6b8b /arch/arm/mach-pxa/devices.c | |
parent | 8d33b05581d1bc66e2356957bb2739e177a9cc36 (diff) |
[ARM] pxa: mmc: add 3rd host controller support for pxa310
This patch is to add the third mmc controller support _only_
for pxa310.
On zylonite, the third controller support one slot.
Signed-off-by: Bridge Wu <bridge.wu@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/devices.c')
-rw-r--r-- | arch/arm/mach-pxa/devices.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index bc04e87ed3b4..061ec92eb1e2 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -589,4 +589,43 @@ void __init pxa3xx_set_mci2_info(struct pxamci_platform_data *info) | |||
589 | pxa_register_device(&pxa3xx_device_mci2, info); | 589 | pxa_register_device(&pxa3xx_device_mci2, info); |
590 | } | 590 | } |
591 | 591 | ||
592 | static struct resource pxa3xx_resources_mci3[] = { | ||
593 | [0] = { | ||
594 | .start = 0x42500000, | ||
595 | .end = 0x42500fff, | ||
596 | .flags = IORESOURCE_MEM, | ||
597 | }, | ||
598 | [1] = { | ||
599 | .start = IRQ_MMC3, | ||
600 | .end = IRQ_MMC3, | ||
601 | .flags = IORESOURCE_IRQ, | ||
602 | }, | ||
603 | [2] = { | ||
604 | .start = 100, | ||
605 | .end = 100, | ||
606 | .flags = IORESOURCE_DMA, | ||
607 | }, | ||
608 | [3] = { | ||
609 | .start = 101, | ||
610 | .end = 101, | ||
611 | .flags = IORESOURCE_DMA, | ||
612 | }, | ||
613 | }; | ||
614 | |||
615 | struct platform_device pxa3xx_device_mci3 = { | ||
616 | .name = "pxa2xx-mci", | ||
617 | .id = 2, | ||
618 | .dev = { | ||
619 | .dma_mask = &pxamci_dmamask, | ||
620 | .coherent_dma_mask = 0xffffffff, | ||
621 | }, | ||
622 | .num_resources = ARRAY_SIZE(pxa3xx_resources_mci3), | ||
623 | .resource = pxa3xx_resources_mci3, | ||
624 | }; | ||
625 | |||
626 | void __init pxa3xx_set_mci3_info(struct pxamci_platform_data *info) | ||
627 | { | ||
628 | pxa_register_device(&pxa3xx_device_mci3, info); | ||
629 | } | ||
630 | |||
592 | #endif /* CONFIG_PXA3xx */ | 631 | #endif /* CONFIG_PXA3xx */ |