10 #include <mach/hardware.h>
13 #define imx_mxc_mmc_data_entry_single(soc, _id, _hwid, _size) \
16 .iobase = soc ## _SDHC ## _hwid ## _BASE_ADDR, \
18 .irq = soc ## _INT_SDHC ## _hwid, \
19 .dmareq = soc ## _DMA_REQ_SDHC ## _hwid, \
21 #define imx_mxc_mmc_data_entry(soc, _id, _hwid, _size) \
22 [_id] = imx_mxc_mmc_data_entry_single(soc, _id, _hwid, _size)
24 #ifdef CONFIG_SOC_IMX21
26 #define imx21_mxc_mmc_data_entry(_id, _hwid) \
27 imx_mxc_mmc_data_entry(MX21, _id, _hwid, SZ_4K)
28 imx21_mxc_mmc_data_entry(0, 1),
29 imx21_mxc_mmc_data_entry(1, 2),
33 #ifdef CONFIG_SOC_IMX27
35 #define imx27_mxc_mmc_data_entry(_id, _hwid) \
36 imx_mxc_mmc_data_entry(MX27, _id, _hwid, SZ_4K)
37 imx27_mxc_mmc_data_entry(0, 1),
38 imx27_mxc_mmc_data_entry(1, 2),
42 #ifdef CONFIG_SOC_IMX31
44 #define imx31_mxc_mmc_data_entry(_id, _hwid) \
45 imx_mxc_mmc_data_entry(MX31, _id, _hwid, SZ_16K)
46 imx31_mxc_mmc_data_entry(0, 1),
47 imx31_mxc_mmc_data_entry(1, 2),
70 return imx_add_platform_device_dmamask(
"mxc-mmc", data->
id,