Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283756
b: refs/heads/master
c: 186bcda
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Nov 23, 2011
1 parent ec943d4 commit 6f46b18
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 85e7652d89293a6dab42bfd31f276f8bc072d4c5
refs/heads/master: 186bcda6f6217dc4b5353c3474121bc1194847f6
12 changes: 12 additions & 0 deletions trunk/Documentation/devicetree/bindings/sound/tegra20-das.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
NVIDIA Tegra 20 DAS (Digital Audio Switch) controller

Required properties:
- compatible : "nvidia,tegra20-das"
- reg : Should contain DAS registers location and length

Example:

das@70000c00 {
compatible = "nvidia,tegra20-das";
reg = <0x70000c00 0x80>;
};
8 changes: 8 additions & 0 deletions trunk/sound/soc/tegra/tegra_das.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,18 @@ static int __devexit tegra_das_remove(struct platform_device *pdev)
return 0;
}

static const struct of_device_id tegra_das_of_match[] __devinitconst = {
{ .compatible = "nvidia,tegra20-das", },
{},
};

static struct platform_driver tegra_das_driver = {
.probe = tegra_das_probe,
.remove = __devexit_p(tegra_das_remove),
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = tegra_das_of_match,
},
};
module_platform_driver(tegra_das_driver);
Expand All @@ -238,3 +245,4 @@ MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
MODULE_DESCRIPTION("Tegra DAS driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRV_NAME);
MODULE_DEVICE_TABLE(of, tegra_das_of_match);

0 comments on commit 6f46b18

Please sign in to comment.