summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-05-27 21:32:35 -0700
committerGary King <gking@nvidia.com>2010-05-27 21:41:11 -0700
commit730957b847d304f1eae03155e345bc9949dfca64 (patch)
tree9f8e09eddd65447cb1d2f4fd3e0cea35e92047d3 /arch
parent77636a9b1926169029f5a7e99ddc5d631b96ff30 (diff)
[ARM/tegra] board-nvodm: register ODM touchscreen if enabled
Change-Id: I313e5f4ec495873abde6486fd8c652724485865f
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/board-nvodm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-nvodm.c b/arch/arm/mach-tegra/board-nvodm.c
index 43ff10b83146..d4a5174efa95 100644
--- a/arch/arm/mach-tegra/board-nvodm.c
+++ b/arch/arm/mach-tegra/board-nvodm.c
@@ -847,6 +847,13 @@ static noinline void __init tegra_setup_rfkill(void)
static void tegra_setup_rfkill(void) { }
#endif
+#ifdef CONFIG_TOUCHSCREEN_TEGRA_ODM
+static struct platform_device tegra_touch_device = {
+ .name = "tegra_touch",
+ .id = -1,
+};
+#endif
+
static struct platform_device *nvodm_devices[] __initdata = {
#ifdef CONFIG_RTC_DRV_TEGRA_ODM
&tegra_rtc_device,
@@ -860,6 +867,9 @@ static struct platform_device *nvodm_devices[] __initdata = {
#ifdef CONFIG_REGULATOR_TEGRA
&tegra_regulator_device,
#endif
+#ifdef CONFIG_TOUCHSCREEN_TEGRA_ODM
+ &tegra_touch_device,
+#endif
};
#ifdef CONFIG_SPI_TEGRA