summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-nvodm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/board-nvodm.c')
-rw-r--r--arch/arm/mach-tegra/board-nvodm.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-nvodm.c b/arch/arm/mach-tegra/board-nvodm.c
index fabe0db34bc9..0263d19ce36b 100644
--- a/arch/arm/mach-tegra/board-nvodm.c
+++ b/arch/arm/mach-tegra/board-nvodm.c
@@ -874,6 +874,27 @@ static struct platform_device tegra_touch_device = {
};
#endif
+#ifdef CONFIG_INPUT_TEGRA_ODM_ACCEL
+static struct platform_device tegra_accelerometer_device = {
+ .name = "tegra_accelerometer",
+ .id = -1,
+};
+#endif
+
+#ifdef CONFIG_INPUT_TEGRA_ODM_SCROLL
+static struct platform_device tegra_scrollwheel_device = {
+ .name = "tegra_scrollwheel",
+ .id = -1,
+};
+#endif
+
+#ifdef CONFIG_TEGRA_ODM_VIBRATE
+static struct platform_device tegra_vibrator_device = {
+ .name = "tegra_vibrator",
+ .id = -1,
+};
+#endif
+
static struct platform_device *nvodm_devices[] __initdata = {
#ifdef CONFIG_RTC_DRV_TEGRA_ODM
&tegra_rtc_device,
@@ -890,6 +911,15 @@ static struct platform_device *nvodm_devices[] __initdata = {
#ifdef CONFIG_TOUCHSCREEN_TEGRA_ODM
&tegra_touch_device,
#endif
+#ifdef CONFIG_INPUT_TEGRA_ODM_SCROLL
+ &tegra_scrollwheel_device,
+#endif
+#ifdef CONFIG_INPUT_TEGRA_ODM_ACCEL
+ &tegra_accelerometer_device,
+#endif
+#ifdef CONFIG_TEGRA_ODM_VIBRATE
+ &tegra_vibrator_device,
+#endif
};
#ifdef CONFIG_SPI_TEGRA