aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/keyboard/tc35894xbg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/keyboard/tc35894xbg.c b/drivers/input/keyboard/tc35894xbg.c
index 68e197dbe20..02a32b234a6 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 */