summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/devices.c
diff options
context:
space:
mode:
authorAnkit Pashiney <apashiney@nvidia.com>2012-06-19 20:00:40 -0700
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-07-06 03:31:19 -0700
commit8f80cbbf354f7e7ba9a3d0cc5a778d5fa1121dcb (patch)
treeb2099acacc8f4d63a442ed678d3e069e4743a582 /arch/arm/mach-tegra/devices.c
parente764753820cb723501692204d8d36c5103903a2c (diff)
arm: tegra: cec: Add IO support for tegra3 cec
Add IO and device support for tegra 3 cec block bug 894195 Change-Id: Icc68b2f900002cf14f48609d4676e7b3e091e948 Signed-off-by: Ankit Pashiney <apashiney@nvidia.com> Reviewed-on: http://git-master/r/105517 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r--arch/arm/mach-tegra/devices.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index 44afd0e63fe4..1a4d570eb632 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -1648,6 +1648,28 @@ struct platform_device tegra_nvmap_device = {
.id = -1,
};
+#ifndef CONFIG_ARCH_TEGRA_2x_SOC
+static struct resource tegra_cec_resources[] = {
+ [0] = {
+ .start = TEGRA_CEC_BASE,
+ .end = TEGRA_CEC_BASE + TEGRA_CEC_SIZE - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ [1] = {
+ .start = INT_CEC,
+ .end = INT_CEC,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+struct platform_device tegra_cec_device = {
+ .name = "tegra_cec",
+ .id = -1,
+ .resource = tegra_cec_resources,
+ .num_resources = ARRAY_SIZE(tegra_cec_resources),
+};
+#endif
+
void __init tegra_init_debug_uart_rate(void)
{
unsigned int uartclk;