summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorVenu Byravarasu <vbyravarasu@nvidia.com>2010-06-16 14:55:20 +0530
committerGary King <gking@nvidia.com>2010-06-22 23:35:56 -0700
commit6efeb6ab2a7dad72f2763cd2fb7ce7e09563adea (patch)
tree22e95009e19979c6d736cda463198cfb968f3f7b /drivers/input
parenta2f6d4d0337a6c67335404c4140bab95a53d8336 (diff)
tegra: Run time detection of accelerometer on E1206
Enabled Bosch and Kionix accelerometers together. Added an abstraction layer which would route calls to Bosch or Kionix accelerometer based on run time detection Testing done: observed changes in accelerometer readings when the device is moved. Change-Id: I7cdadb609703d6d0eeabf6e2878adb5f81c43b72 Reviewed-on: http://git-master/r/2753 Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Hoang Pham <hopham@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/tegra_odm_accel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/misc/tegra_odm_accel.c b/drivers/input/misc/tegra_odm_accel.c
index 8af906d9ba77..9bc9b4927757 100644
--- a/drivers/input/misc/tegra_odm_accel.c
+++ b/drivers/input/misc/tegra_odm_accel.c
@@ -107,7 +107,7 @@ NvBool open_def_odm_accl(void)
}
err = NvOdmAccelSetIntForceThreshold(accel_dev->hOdmAcr,
- NvOdmAccelInt_MotionThreshold, 0, 900);
+ NvOdmAccelInt_MotionThreshold, 0, 2);
if (!err) {
pr_err("open_def_odm_accl: Set Motion Thresold failed\n");
return err;
@@ -130,7 +130,7 @@ NvBool open_def_odm_accl(void)
}
err = NvOdmAccelSetIntForceThreshold(accel_dev->hOdmAcr,
- NvOdmAccelInt_TapThreshold, 0, 120);
+ NvOdmAccelInt_TapThreshold, 0, 10);
if (!err) {
pr_err("open_def_odm_accl: Set Tap Threshold failed\n");
@@ -163,8 +163,8 @@ void change_nvodm_accelerometer_settings(NvU32 command, NvS32 value)
accel_dev->freq = value;
}
} else {
- NvOdmAccelSetSampleRate(accel_dev->hOdmAcr,
- NvOdmAccelPower_Fullrun);
+// NvOdmAccelSetSampleRate(accel_dev->hOdmAcr,
+// NvOdmAccelPower_Fullrun);
if (NvOdmAccelSetSampleRate(accel_dev->hOdmAcr, value)) {
accel_dev->freq = value;
}