diff options
Diffstat (limited to 'arch/arm/mach-tegra')
-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 |