summaryrefslogtreecommitdiffstats
path: root/drivers/mci
diff options
context:
space:
mode:
authorEnrico Joerns <ejo@pengutronix.de>2017-03-01 15:31:34 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-02 09:11:24 +0100
commitdc9ef03ecbd81ba78cf825dc1399406eab8c51e7 (patch)
tree45854163fd884a4f4c30bc5a38f41b8dfd3852dc /drivers/mci
parent6b4f5b64486b58316ad4cf15f9907ead711f7bc9 (diff)
downloadbarebox-dc9ef03ecbd81ba78cf825dc1399406eab8c51e7.tar.gz
barebox-dc9ef03ecbd81ba78cf825dc1399406eab8c51e7.tar.xz
mci-bcm2835: enable devicetree probing
Signed-off-by: Enrico Joerns <ejo@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci')
-rw-r--r--drivers/mci/mci-bcm2835.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c
index c7a8cf972a..daf771934a 100644
--- a/drivers/mci/mci-bcm2835.c
+++ b/drivers/mci/mci-bcm2835.c
@@ -543,9 +543,18 @@ static int bcm2835_mci_probe(struct device_d *hw_dev)
return mci_register(&host->mci);
}
+static __maybe_unused struct of_device_id bcm2835_mci_compatible[] = {
+ {
+ .compatible = "brcm,bcm2835-sdhci",
+ }, {
+ /* sentinel */
+ }
+};
+
static struct driver_d bcm2835_mci_driver = {
.name = "bcm2835_mci",
.probe = bcm2835_mci_probe,
+ .of_compatible = DRV_OF_COMPAT(bcm2835_mci_compatible),
};
static int bcm2835_mci_add(void)