On some hardware, getting double keys for single keypresses.

Slow the clock slightly (rate requested by the customer) to avoid double
key detects on formfactor hardware that has higher capacitance across the
lines.

Signed-off-by: Ken Lierman <[email protected]>
---
 drivers/input/keyboard/tc35894xbg.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/input/keyboard/tc35894xbg.c 
b/drivers/input/keyboard/tc35894xbg.c
index 68e197d..02a32b2 100644
--- a/drivers/input/keyboard/tc35894xbg.c
+++ b/drivers/input/keyboard/tc35894xbg.c
@@ -176,7 +176,9 @@ static int keypad_configure(struct tc35894xbg_keypad_chip 
*tc)
        dev_dbg(&tc->client->dev, "keypad internal clock setting\n");
        /* CLKCFG : select the RC-osc:2MHZ, disable doubler, divider:2 */
        /* CLK_IN = internal clock / 2 = 65KHZ / 2 = 32KHZ */
-       keypad_write(tc, 2, TC_REG_CLKCFG, TC_VAL_CLKSRCSEL | 0x01);
+       keypad_write(tc, 2, TC_REG_CLKCFG,
+                    (TC_VAL_CLKSRCSEL | 0x01) |
+                    (TC_VAL_CLKDIV_MASK & 0x04));
 
        dev_dbg(&tc->client->dev, "keypad keyboard setting\n");
        /* keyboard settings */

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to