2 * Copyright (C) 2010 Pengutronix, Wolfram Sang <w.sang@pengutronix.de>
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.
9 #include <mach/devices-common.h>
10 #include <mach/esdhc.h>
12 struct platform_device *__init imx_add_esdhc(int id,
13 resource_size_t iobase, resource_size_t iosize,
15 const struct esdhc_platform_data *pdata)
17 struct resource res[] = {
20 .end = iobase + iosize - 1,
21 .flags = IORESOURCE_MEM,
25 .flags = IORESOURCE_IRQ,
29 return imx_add_platform_device("sdhci-esdhc-imx", id, res,
30 ARRAY_SIZE(res), pdata, sizeof(*pdata));