diff options
author | Lothar Waßmann <LW@KARO-electronics.de> | 2014-03-28 12:27:50 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-03-28 12:33:05 -0400 |
commit | c0808467494318029f71185b42b61f1ae153afdc (patch) | |
tree | c1d1a19380fde1c1c301aa8a2d401aedd1e5846a /drivers/input | |
parent | dac90dc23211996286c3b934057d0df77cfef0b4 (diff) |
Input: edt-ft5x06 - adjust delays to conform datasheet
The FT5x06 datasheet specifies a minimum reset width of 5ms and a
delay between deassertion of reset and start of reporting of 300ms.
Adjust the delays to conform to the datasheet.
With the original delays I sometimes experienced communication
timeouts when initializing the controller.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/edt-ft5x06.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 9d61f1e36b33..fd18e580870a 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c | |||
@@ -635,7 +635,7 @@ static int edt_ft5x06_ts_reset(struct i2c_client *client, | |||
635 | return error; | 635 | return error; |
636 | } | 636 | } |
637 | 637 | ||
638 | mdelay(5); | 638 | msleep(5); |
639 | gpio_set_value(tsdata->wake_pin, 1); | 639 | gpio_set_value(tsdata->wake_pin, 1); |
640 | } | 640 | } |
641 | if (gpio_is_valid(tsdata->reset_pin)) { | 641 | if (gpio_is_valid(tsdata->reset_pin)) { |
@@ -650,9 +650,9 @@ static int edt_ft5x06_ts_reset(struct i2c_client *client, | |||
650 | return error; | 650 | return error; |
651 | } | 651 | } |
652 | 652 | ||
653 | mdelay(50); | 653 | msleep(5); |
654 | gpio_set_value(tsdata->reset_pin, 1); | 654 | gpio_set_value(tsdata->reset_pin, 1); |
655 | mdelay(100); | 655 | msleep(300); |
656 | } | 656 | } |
657 | 657 | ||
658 | return 0; | 658 | return 0; |