9
0
Fork 0

mmc: omap: Add devicetree support

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-11-20 07:18:37 +01:00
parent 599e61ebd9
commit 03d601d58f
1 changed files with 13 additions and 0 deletions

View File

@ -640,9 +640,22 @@ static struct platform_device_id omap_mmc_ids[] = {
},
};
static __maybe_unused struct of_device_id omap_mmc_dt_ids[] = {
{
.compatible = "ti,omap3-hsmmc",
.data = (unsigned long)&omap3_data,
}, {
.compatible = "ti,omap4-hsmmc",
.data = (unsigned long)&omap4_data,
}, {
/* sentinel */
}
};
static struct driver_d omap_mmc_driver = {
.name = "omap-hsmmc",
.probe = omap_mmc_probe,
.id_table = omap_mmc_ids,
.of_compatible = DRV_OF_COMPAT(omap_mmc_dt_ids),
};
device_platform_driver(omap_mmc_driver);