Signed-off-by: Sascha Hauer <[email protected]>
---
 drivers/mci/omap_hsmmc.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c
index 19db461..2e736e1 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);
-- 
1.8.4.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to