summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-05-28 17:00:15 -0700
committerGary King <gking@nvidia.com>2010-05-28 17:21:13 -0700
commitf58e6e1ef5c1beaaa464b339f44ce706924cbb94 (patch)
tree12014f2518f465d20421d6042f7051b6c6470ceb /arch
parent10deb423f448f3a7c9519cd76a5012821e7c1d9b (diff)
[ARM/tegra] board-nvodm: register miscellaneous devices if enabled
register the tegra_accelerometer, tegra_scrollwheel and tegra_vibrator ODM kit devices if enabled in the kernel config Change-Id: I436095452940cef4b22b4cdba20fa778fea57116 Reviewed-on: http://git-master/r/1832 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch')
-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