summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-07-11 18:56:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-29 11:31:31 +0100
commit078a29da286a267717984d84e24a38b91060cb38 (patch)
tree1a5cc0b57a588fdf3fd6b5651e5dc433e02d6353 /drivers
parentdcb8a8b1a65abdc67f9e80c5dab626d9a6a97d41 (diff)
downloadbarebox-078a29da286a267717984d84e24a38b91060cb38.tar.gz
barebox-078a29da286a267717984d84e24a38b91060cb38.tar.xz
mci: imx: Add devicetree probe support
Only simple probing, no properties supported yet. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mci/imx.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mci/imx.c b/drivers/mci/imx.c
index aea78c7550..6992177af6 100644
--- a/drivers/mci/imx.c
+++ b/drivers/mci/imx.c
@@ -520,8 +520,17 @@ static int mxcmci_probe(struct device_d *dev)
return 0;
}
+static __maybe_unused struct of_device_id mxcmci_compatible[] = {
+ {
+ .compatible = "fsl,imx27-mmc",
+ }, {
+ /* sentinel */
+ }
+};
+
static struct driver_d mxcmci_driver = {
.name = DRIVER_NAME,
.probe = mxcmci_probe,
+ .of_compatible = DRV_OF_COMPAT(mxcmci_compatible),
};
device_platform_driver(mxcmci_driver);