aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/devices/platform-esdhc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-mxc/devices/platform-esdhc.c')
-rw-r--r--arch/arm/plat-mxc/devices/platform-esdhc.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-esdhc.c b/arch/arm/plat-mxc/devices/platform-esdhc.c
new file mode 100644
index 000000000000..68db2a22d2cd
--- /dev/null
+++ b/arch/arm/plat-mxc/devices/platform-esdhc.c
@@ -0,0 +1,31 @@
1/*
2 * Copyright (C) 2010 Pengutronix, Wolfram Sang <w.sang@pengutronix.de>
3 *
4 * This program is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License version 2 as published by the
6 * Free Software Foundation.
7 */
8
9#include <mach/devices-common.h>
10#include <mach/esdhc.h>
11
12struct platform_device *__init imx_add_esdhc(int id,
13 resource_size_t iobase, resource_size_t iosize,
14 resource_size_t irq,
15 const struct esdhc_platform_data *pdata)
16{
17 struct resource res[] = {
18 {
19 .start = iobase,
20 .end = iobase + iosize - 1,
21 .flags = IORESOURCE_MEM,
22 }, {
23 .start = irq,
24 .end = irq,
25 .flags = IORESOURCE_IRQ,
26 },
27 };
28
29 return imx_add_platform_device("sdhci-esdhc-imx", id, res,
30 ARRAY_SIZE(res), pdata, sizeof(*pdata));
31}