From 885abe0703b083f90a3689454d9c941f839fc762 Mon Sep 17 00:00:00 2001 From: Russell King Date: Tue, 20 Jan 2004 16:43:55 +0000 Subject: [PATCH] [ARM] Add PXA MCI resources and device structure. --- arch/arm/mach-pxa/generic.c | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index a7eff6ea12640..a811fa344b8bc 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c @@ -20,9 +20,12 @@ #include #include #include +#include +#include #include #include +#include #include #include #include @@ -138,3 +141,40 @@ void __init pxa_map_io(void) iotable_init(standard_io_desc, ARRAY_SIZE(standard_io_desc)); get_clk_frequency_khz(1); } + + +static struct resource pxamci_resources[] = { + [0] = { + .start = 0x41100000, + .end = 0x41100fff, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_MMC, + .end = IRQ_MMC, + .flags = IORESOURCE_IRQ, + }, +}; + +static u64 pxamci_dmamask = 0xffffffffUL; + +static struct platform_device pxamci_device = { + .name = "pxamci", + .id = 0, + .dev = { + .dma_mask = &pxamci_dmamask, + }, + .num_resources = ARRAY_SIZE(pxamci_resources), + .resource = pxamci_resources, +}; + +static struct platform_device *devices[] __initdata = { + &pxamci_device, +}; + +static int __init pxa_init(void) +{ + return platform_add_devices(devices, ARRAY_SIZE(devices)); +} + +subsys_initcall(pxa_init); -- 2.53.0