]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: pxa: add DT bindings for pxa2xx-pcm
authorDaniel Mack <zonque@gmail.com>
Mon, 12 Aug 2013 08:42:41 +0000 (10:42 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 15 Aug 2013 10:29:07 +0000 (11:29 +0100)
The bindings do not carry any resources, as the module only registers
the ASoC platform driver.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/sound/mrvl,pxa2xx-pcm.txt [new file with mode: 0644]
sound/soc/pxa/pxa2xx-pcm.c

diff --git a/Documentation/devicetree/bindings/sound/mrvl,pxa2xx-pcm.txt b/Documentation/devicetree/bindings/sound/mrvl,pxa2xx-pcm.txt
new file mode 100644 (file)
index 0000000..551fbb8
--- /dev/null
@@ -0,0 +1,15 @@
+DT bindings for ARM PXA2xx PCM platform driver
+
+This is just a dummy driver that registers the PXA ASoC platform driver.
+It does not have any resources assigned.
+
+Required properties:
+
+       - compatible            'mrvl,pxa-pcm-audio'
+
+Example:
+
+       pxa_pcm_audio: snd_soc_pxa_audio {
+               compatible = "mrvl,pxa-pcm-audio";
+       };
+
index 0aa2d695064a45fb791aa490c100734844e43a60..806da27b8b671ed8596484856ec59f8092c75e8d 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/module.h>
 #include <linux/dmaengine.h>
+#include <linux/of.h>
 
 #include <sound/core.h>
 #include <sound/soc.h>
@@ -133,10 +134,18 @@ static int pxa2xx_soc_platform_remove(struct platform_device *pdev)
        return 0;
 }
 
+#ifdef CONFIG_OF
+static const struct of_device_id snd_soc_pxa_audio_match[] = {
+       { .compatible   = "mrvl,pxa-pcm-audio" },
+       { }
+};
+#endif
+
 static struct platform_driver pxa_pcm_driver = {
        .driver = {
-                       .name = "pxa-pcm-audio",
-                       .owner = THIS_MODULE,
+               .name = "pxa-pcm-audio",
+               .owner = THIS_MODULE,
+               .of_match_table = of_match_ptr(snd_soc_pxa_audio_match),
        },
 
        .probe = pxa2xx_soc_platform_probe,