diff options
author | Nikesh Oswal <noswal@nvidia.com> | 2011-10-13 20:39:47 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:38 -0800 |
commit | 6e4e82dc04f37da3281dd0b6df8c4fe7c6a66dc3 (patch) | |
tree | 551bd0a3c5f080bbf1627b50ec3ebdf7b25946da /arch/arm/mach-tegra/devices.c | |
parent | be785d114f747fa31645f8f30366ae2a75af0aa6 (diff) |
arm: tegra: add dam to devices.h
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
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 1b0332bfe114..64f82c54741e 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -1036,6 +1036,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 = { |