|
@@ -10,21 +10,22 @@
|
|
|
#include <mach/devices-common.h>
|
|
|
#include <mach/esdhc.h>
|
|
|
|
|
|
-#define imx_sdhci_esdhc_imx_data_entry_single(soc, _id, hwid) \
|
|
|
+#define imx_sdhci_esdhc_imx_data_entry_single(soc, _devid, _id, hwid) \
|
|
|
{ \
|
|
|
+ .devid = _devid, \
|
|
|
.id = _id, \
|
|
|
.iobase = soc ## _ESDHC ## hwid ## _BASE_ADDR, \
|
|
|
.irq = soc ## _INT_ESDHC ## hwid, \
|
|
|
}
|
|
|
|
|
|
-#define imx_sdhci_esdhc_imx_data_entry(soc, id, hwid) \
|
|
|
- [id] = imx_sdhci_esdhc_imx_data_entry_single(soc, id, hwid)
|
|
|
+#define imx_sdhci_esdhc_imx_data_entry(soc, devid, id, hwid) \
|
|
|
+ [id] = imx_sdhci_esdhc_imx_data_entry_single(soc, devid, id, hwid)
|
|
|
|
|
|
#ifdef CONFIG_SOC_IMX25
|
|
|
const struct imx_sdhci_esdhc_imx_data
|
|
|
imx25_sdhci_esdhc_imx_data[] __initconst = {
|
|
|
#define imx25_sdhci_esdhc_imx_data_entry(_id, _hwid) \
|
|
|
- imx_sdhci_esdhc_imx_data_entry(MX25, _id, _hwid)
|
|
|
+ imx_sdhci_esdhc_imx_data_entry(MX25, "sdhci-esdhc-imx25", _id, _hwid)
|
|
|
imx25_sdhci_esdhc_imx_data_entry(0, 1),
|
|
|
imx25_sdhci_esdhc_imx_data_entry(1, 2),
|
|
|
};
|
|
@@ -34,7 +35,7 @@ imx25_sdhci_esdhc_imx_data[] __initconst = {
|
|
|
const struct imx_sdhci_esdhc_imx_data
|
|
|
imx35_sdhci_esdhc_imx_data[] __initconst = {
|
|
|
#define imx35_sdhci_esdhc_imx_data_entry(_id, _hwid) \
|
|
|
- imx_sdhci_esdhc_imx_data_entry(MX35, _id, _hwid)
|
|
|
+ imx_sdhci_esdhc_imx_data_entry(MX35, "sdhci-esdhc-imx35", _id, _hwid)
|
|
|
imx35_sdhci_esdhc_imx_data_entry(0, 1),
|
|
|
imx35_sdhci_esdhc_imx_data_entry(1, 2),
|
|
|
imx35_sdhci_esdhc_imx_data_entry(2, 3),
|
|
@@ -45,7 +46,7 @@ imx35_sdhci_esdhc_imx_data[] __initconst = {
|
|
|
const struct imx_sdhci_esdhc_imx_data
|
|
|
imx51_sdhci_esdhc_imx_data[] __initconst = {
|
|
|
#define imx51_sdhci_esdhc_imx_data_entry(_id, _hwid) \
|
|
|
- imx_sdhci_esdhc_imx_data_entry(MX51, _id, _hwid)
|
|
|
+ imx_sdhci_esdhc_imx_data_entry(MX51, "sdhci-esdhc-imx51", _id, _hwid)
|
|
|
imx51_sdhci_esdhc_imx_data_entry(0, 1),
|
|
|
imx51_sdhci_esdhc_imx_data_entry(1, 2),
|
|
|
imx51_sdhci_esdhc_imx_data_entry(2, 3),
|
|
@@ -57,7 +58,7 @@ imx51_sdhci_esdhc_imx_data[] __initconst = {
|
|
|
const struct imx_sdhci_esdhc_imx_data
|
|
|
imx53_sdhci_esdhc_imx_data[] __initconst = {
|
|
|
#define imx53_sdhci_esdhc_imx_data_entry(_id, _hwid) \
|
|
|
- imx_sdhci_esdhc_imx_data_entry(MX53, _id, _hwid)
|
|
|
+ imx_sdhci_esdhc_imx_data_entry(MX53, "sdhci-esdhc-imx53", _id, _hwid)
|
|
|
imx53_sdhci_esdhc_imx_data_entry(0, 1),
|
|
|
imx53_sdhci_esdhc_imx_data_entry(1, 2),
|
|
|
imx53_sdhci_esdhc_imx_data_entry(2, 3),
|
|
@@ -93,6 +94,6 @@ struct platform_device *__init imx_add_sdhci_esdhc_imx(
|
|
|
if (!pdata)
|
|
|
pdata = &default_esdhc_pdata;
|
|
|
|
|
|
- return imx_add_platform_device("sdhci-esdhc-imx", data->id, res,
|
|
|
+ return imx_add_platform_device(data->devid, data->id, res,
|
|
|
ARRAY_SIZE(res), pdata, sizeof(*pdata));
|
|
|
}
|