summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-07-09 16:44:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-23 16:25:14 +0200
commit85fd269e76ebbcc6bcf1efcae6fad983c2bd63f7 (patch)
tree00d3ac892b1c98424e85bcc321efdb3b26f1ea58 /drivers/dma
parent5cd4fd8fbaadb77bb551505ce276116b03af37f3 (diff)
downloadbarebox-85fd269e76ebbcc6bcf1efcae6fad983c2bd63f7.tar.gz
dma: apbh: add devicetree probe support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/apbh_dma.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c
index fa4dd34..89948bc 100644
--- a/drivers/dma/apbh_dma.c
+++ b/drivers/dma/apbh_dma.c
@@ -649,9 +649,22 @@ static struct platform_device_id apbh_ids[] = {
},
};
+static __maybe_unused struct of_device_id apbh_dt_ids[] = {
+ {
+ .compatible = "fsl,imx23-dma-apbh",
+ .data = (unsigned long)IMX23_DMA,
+ }, {
+ .compatible = "fsl,imx28-dma-apbh",
+ .data = (unsigned long)IMX28_DMA,
+ }, {
+ /* sentinel */
+ }
+};
+
static struct driver_d apbh_dma_driver = {
.name = "dma-apbh",
.id_table = apbh_ids,
+ .of_compatible = DRV_OF_COMPAT(apbh_dt_ids),
.probe = apbh_dma_probe,
};
coredevice_platform_driver(apbh_dma_driver);