From 760053b1348b5edee4f04c2cb2baf9ac23a6c85a Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Tue, 15 Nov 2011 11:32:14 +0200 Subject: [PATCH] --- yaml --- r: 307997 b: refs/heads/master c: 7cb8a1b5bae163c7aa746ffc02a641df6ed32f73 h: refs/heads/master i: 307995: f05d06c75190bc796392e95395877b75afc2bc4c v: v3 --- [refs] | 2 +- .../devicetree/bindings/sound/omap-mcpdm.txt | 21 +++++++++++++++++++ trunk/sound/soc/omap/omap-mcpdm.c | 8 +++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 trunk/Documentation/devicetree/bindings/sound/omap-mcpdm.txt diff --git a/[refs] b/[refs] index af781491e8ec..4e7b5e58a83e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ce37f5ea4b77171952aacd829e8f346b78191a7b +refs/heads/master: 7cb8a1b5bae163c7aa746ffc02a641df6ed32f73 diff --git a/trunk/Documentation/devicetree/bindings/sound/omap-mcpdm.txt b/trunk/Documentation/devicetree/bindings/sound/omap-mcpdm.txt new file mode 100644 index 000000000000..0741dff048dd --- /dev/null +++ b/trunk/Documentation/devicetree/bindings/sound/omap-mcpdm.txt @@ -0,0 +1,21 @@ +* Texas Instruments OMAP4+ McPDM + +Required properties: +- compatible: "ti,omap4-mcpdm" +- reg: Register location and size as an array: + , + ; +- interrupts: Interrupt number for McPDM +- interrupt-parent: The parent interrupt controller +- ti,hwmods: Name of the hwmod associated to the McPDM + +Example: + +mcpdm: mcpdm@40132000 { + compatible = "ti,omap4-mcpdm"; + reg = <0x40132000 0x7f>, /* MPU private access */ + <0x49032000 0x7f>; /* L3 Interconnect */ + interrupts = <0 112 0x4>; + interrupt-parent = <&gic>; + ti,hwmods = "mcpdm"; +}; diff --git a/trunk/sound/soc/omap/omap-mcpdm.c b/trunk/sound/soc/omap/omap-mcpdm.c index 39705561131a..59d47ab5b15d 100644 --- a/trunk/sound/soc/omap/omap-mcpdm.c +++ b/trunk/sound/soc/omap/omap-mcpdm.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -507,10 +508,17 @@ static int __devexit asoc_mcpdm_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id omap_mcpdm_of_match[] = { + { .compatible = "ti,omap4-mcpdm", }, + { } +}; +MODULE_DEVICE_TABLE(of, omap_mcpdm_of_match); + static struct platform_driver asoc_mcpdm_driver = { .driver = { .name = "omap-mcpdm", .owner = THIS_MODULE, + .of_match_table = omap_mcpdm_of_match, }, .probe = asoc_mcpdm_probe,