summaryrefslogtreecommitdiffstats
path: root/drivers/mci/omap_hsmmc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-11-20 07:18:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-27 10:42:54 +0100
commit03d601d58f4d6228bcb67e6035d4ede7b1d99ae3 (patch)
tree141710da7f17b0bfd8f07c5a7711f1962ecee7f0 /drivers/mci/omap_hsmmc.c
parent599e61ebd9b9b1f3d3fd2ed45af9ecee06c00ac3 (diff)
downloadbarebox-03d601d58f4d6228bcb67e6035d4ede7b1d99ae3.tar.gz
barebox-03d601d58f4d6228bcb67e6035d4ede7b1d99ae3.tar.xz
mmc: omap: Add devicetree support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/omap_hsmmc.c')
-rw-r--r--drivers/mci/omap_hsmmc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c
index 19db461e0d..2e736e13d9 100644
--- a/drivers/mci/omap_hsmmc.c
+++ b/drivers/mci/omap_hsmmc.c
@@ -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);