summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavindra Lokhande <rlokhande@nvidia.com>2011-01-05 13:17:46 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2011-01-05 04:31:23 -0800
commit76c6e560ae75f9f29cafb773e392c8f5516fb6f4 (patch)
treee19f8ff2948b81b254da4d1628c4068dea4b998d
parent23203c59b1fe80283abd6412e1be89a480a81c4a (diff)
[ARM] tegra: add resources for das device
Added resources and platform data for das device Change-Id: I01753276db71c19e141ad33df139a846e6d38455 Reviewed-on: http://git-master/r/14976 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Tested-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/devices.c15
-rw-r--r--arch/arm/mach-tegra/devices.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index dac6bbbf0e2c..1bee4e58683b 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -518,6 +518,21 @@ struct platform_device tegra_spdif_device = {
.num_resources = ARRAY_SIZE(spdif_resource),
};
+static struct resource das_resource[] = {
+ [0] = {
+ .start = TEGRA_APB_MISC_BASE,
+ .end = TEGRA_APB_MISC_BASE + TEGRA_APB_MISC_SIZE - 1,
+ .flags = IORESOURCE_MEM
+ }
+};
+
+struct platform_device tegra_das_device = {
+ .name = "tegra_das",
+ .id = -1,
+ .resource = das_resource,
+ .num_resources = ARRAY_SIZE(das_resource),
+};
+
static struct resource tegra_gart_resources[] = {
[0] = {
.name = "mc",
diff --git a/arch/arm/mach-tegra/devices.h b/arch/arm/mach-tegra/devices.h
index 1c547257a34f..ca5934965a11 100644
--- a/arch/arm/mach-tegra/devices.h
+++ b/arch/arm/mach-tegra/devices.h
@@ -60,5 +60,6 @@ extern struct platform_device tegra_grhost_device;
extern struct platform_device tegra_spdif_device;
extern struct platform_device tegra_avp_device;
extern struct platform_device tegra_aes_device;
+extern struct platform_device tegra_das_device;
#endif