diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-11-22 20:21:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 06:05:08 -0500 |
commit | 186bcda6f6217dc4b5353c3474121bc1194847f6 (patch) | |
tree | fc2ac1da5e5eb8d2f63f032140743d522aaad7a5 | |
parent | 85e7652d89293a6dab42bfd31f276f8bc072d4c5 (diff) |
ASoC: Tegra DAS: Add device tree binding
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | Documentation/devicetree/bindings/sound/tegra20-das.txt | 12 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_das.c | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/tegra20-das.txt b/Documentation/devicetree/bindings/sound/tegra20-das.txt new file mode 100644 index 000000000000..6de3a7ee4efb --- /dev/null +++ b/Documentation/devicetree/bindings/sound/tegra20-das.txt | |||
@@ -0,0 +1,12 @@ | |||
1 | NVIDIA Tegra 20 DAS (Digital Audio Switch) controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "nvidia,tegra20-das" | ||
5 | - reg : Should contain DAS registers location and length | ||
6 | |||
7 | Example: | ||
8 | |||
9 | das@70000c00 { | ||
10 | compatible = "nvidia,tegra20-das"; | ||
11 | reg = <0x70000c00 0x80>; | ||
12 | }; | ||
diff --git a/sound/soc/tegra/tegra_das.c b/sound/soc/tegra/tegra_das.c index fa3a4426cbdd..5b82b4e79231 100644 --- a/sound/soc/tegra/tegra_das.c +++ b/sound/soc/tegra/tegra_das.c | |||
@@ -225,11 +225,18 @@ static int __devexit tegra_das_remove(struct platform_device *pdev) | |||
225 | return 0; | 225 | return 0; |
226 | } | 226 | } |
227 | 227 | ||
228 | static const struct of_device_id tegra_das_of_match[] __devinitconst = { | ||
229 | { .compatible = "nvidia,tegra20-das", }, | ||
230 | {}, | ||
231 | }; | ||
232 | |||
228 | static struct platform_driver tegra_das_driver = { | 233 | static struct platform_driver tegra_das_driver = { |
229 | .probe = tegra_das_probe, | 234 | .probe = tegra_das_probe, |
230 | .remove = __devexit_p(tegra_das_remove), | 235 | .remove = __devexit_p(tegra_das_remove), |
231 | .driver = { | 236 | .driver = { |
232 | .name = DRV_NAME, | 237 | .name = DRV_NAME, |
238 | .owner = THIS_MODULE, | ||
239 | .of_match_table = tegra_das_of_match, | ||
233 | }, | 240 | }, |
234 | }; | 241 | }; |
235 | module_platform_driver(tegra_das_driver); | 242 | module_platform_driver(tegra_das_driver); |
@@ -238,3 +245,4 @@ MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); | |||
238 | MODULE_DESCRIPTION("Tegra DAS driver"); | 245 | MODULE_DESCRIPTION("Tegra DAS driver"); |
239 | MODULE_LICENSE("GPL"); | 246 | MODULE_LICENSE("GPL"); |
240 | MODULE_ALIAS("platform:" DRV_NAME); | 247 | MODULE_ALIAS("platform:" DRV_NAME); |
248 | MODULE_DEVICE_TABLE(of, tegra_das_of_match); | ||