summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjung <djung@nvidia.com>2014-06-06 16:05:18 -0700
committerHarry Hong <hhong@nvidia.com>2014-06-23 17:55:01 -0700
commit64650c054b2f3e0473422c92eec7d1da5d4896f6 (patch)
treefddc5a0635b6d8ffb78ab287096106ed9c59a018
parent994b8fa63b065cf6073c499d654a505f4b7edc74 (diff)
input: touch: maxim: update power sequence
Updated touch power sequence to stay within tolerances. Bug 15221534 Change-Id: Ic35bf958c5e93a1a8a454985be357eb3a8e866af Signed-off-by: djung <djung@nvidia.com> Reviewed-on: http://git-master/r/426695 Reviewed-by: Harry Hong <hhong@nvidia.com> Tested-by: Harry Hong <hhong@nvidia.com>
-rw-r--r--drivers/input/touchscreen/maxim_sti.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/maxim_sti.c b/drivers/input/touchscreen/maxim_sti.c
index a70c7f53fab2..ac0ddf959880 100644
--- a/drivers/input/touchscreen/maxim_sti.c
+++ b/drivers/input/touchscreen/maxim_sti.c
@@ -695,13 +695,14 @@ static int regulator_control(struct dev_data *dd, bool on)
return 0;
if (on) {
+ usleep_range(4000, 4800);
ret = regulator_enable(dd->reg_avdd);
if (ret < 0) {
ERROR("Failed to enable regulator avdd: %d", ret);
return ret;
}
- usleep_range(8000, 8800);
+ usleep_range(100, 300);
ret = regulator_enable(dd->reg_dvdd);
if (ret < 0) {
ERROR("Failed to enable regulator dvdd: %d", ret);
@@ -721,6 +722,8 @@ static int regulator_control(struct dev_data *dd, bool on)
return ret;
}
+ usleep_range(3000, 3800);
+
if (regulator_is_enabled(dd->reg_avdd))
ret = regulator_disable(dd->reg_avdd);
if (ret < 0) {