diff options
author | Ankit Pashiney <apashiney@nvidia.com> | 2012-06-19 20:00:40 -0700 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-07-06 03:31:19 -0700 |
commit | 8f80cbbf354f7e7ba9a3d0cc5a778d5fa1121dcb (patch) | |
tree | b2099acacc8f4d63a442ed678d3e069e4743a582 /arch | |
parent | e764753820cb723501692204d8d36c5103903a2c (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')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 22 | ||||
-rw-r--r-- | arch/arm/mach-tegra/devices.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/iomap.h | 3 |
3 files changed, 28 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; diff --git a/arch/arm/mach-tegra/devices.h b/arch/arm/mach-tegra/devices.h index 1ee723534476..1313309722cf 100644 --- a/arch/arm/mach-tegra/devices.h +++ b/arch/arm/mach-tegra/devices.h @@ -126,6 +126,9 @@ extern struct platform_device debug_uarte_device; extern struct nvhost_device tegra_disp1_device; extern struct platform_device tegra_nvmap_device; +#ifndef CONFIG_ARCH_TEGRA_2x_SOC +extern struct platform_device tegra_cec_device; +#endif void __init tegra_init_debug_uart_rate(void); diff --git a/arch/arm/mach-tegra/include/mach/iomap.h b/arch/arm/mach-tegra/include/mach/iomap.h index c491abafb8b9..6d3a1aff0cfe 100644 --- a/arch/arm/mach-tegra/include/mach/iomap.h +++ b/arch/arm/mach-tegra/include/mach/iomap.h @@ -263,6 +263,9 @@ #define TEGRA_TSENSOR_BASE 0x70014000 #define TEGRA_TSENSOR_SIZE SZ_4K +#define TEGRA_CEC_BASE 0x70015000 +#define TEGRA_CEC_SIZE SZ_4K + #define TEGRA_HDA_BASE 0x70030000 #define TEGRA_HDA_SIZE SZ_64K |