arm: tegra: add dam to devices.h
Nikesh Oswal [Thu, 13 Oct 2011 15:09:47 +0000 (20:09 +0530)]
Bug: 862023
Change-Id: I135529efcb8bf4518802d950a07e6923690419b0
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/57881
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R6c2419452e13142b07963e65a256e9da1e181ab2

arch/arm/mach-tegra/devices.c
arch/arm/mach-tegra/devices.h

index fb40e8e..4baf711 100644 (file)
@@ -1134,6 +1134,51 @@ struct platform_device tegra_ahub_device = {
        .resource       = ahub_resource,
        .num_resources  = ARRAY_SIZE(ahub_resource),
 };
+
+static struct resource dam_resource0[] = {
+       [0] = {
+               .start = TEGRA_DAM0_BASE,
+               .end   = TEGRA_DAM0_BASE + TEGRA_DAM0_SIZE - 1,
+               .flags = IORESOURCE_MEM
+       }
+};
+
+struct platform_device tegra_dam_device0 = {
+       .name = "tegra30-dam",
+       .id = 0,
+       .resource      = dam_resource0,
+       .num_resources = ARRAY_SIZE(dam_resource0),
+};
+
+static struct resource dam_resource1[] = {
+       [0] = {
+               .start = TEGRA_DAM1_BASE,
+               .end   = TEGRA_DAM1_BASE + TEGRA_DAM1_SIZE - 1,
+               .flags = IORESOURCE_MEM
+       }
+};
+
+struct platform_device tegra_dam_device1 = {
+       .name = "tegra30-dam",
+       .id = 1,
+       .resource      = dam_resource1,
+       .num_resources = ARRAY_SIZE(dam_resource1),
+};
+
+static struct resource dam_resource2[] = {
+       [0] = {
+               .start = TEGRA_DAM2_BASE,
+               .end   = TEGRA_DAM2_BASE + TEGRA_DAM2_SIZE - 1,
+               .flags = IORESOURCE_MEM
+       }
+};
+
+struct platform_device tegra_dam_device2 = {
+       .name = "tegra30-dam",
+       .id = 2,
+       .resource      = dam_resource2,
+       .num_resources = ARRAY_SIZE(dam_resource2),
+};
 #endif
 
 struct platform_device spdif_dit_device = {
index f8f103d..6d2353a 100644 (file)
@@ -90,6 +90,9 @@ extern struct platform_device tegra_apbif0_device;
 extern struct platform_device tegra_apbif1_device;
 extern struct platform_device tegra_apbif2_device;
 extern struct platform_device tegra_apbif3_device;
+extern struct platform_device tegra_dam_device0;
+extern struct platform_device tegra_dam_device1;
+extern struct platform_device tegra_dam_device2;
 extern struct platform_device tegra_hda_device;
 extern struct platform_device tegra_sata_device;
 #endif