summaryrefslogtreecommitdiff
path: root/include/linux/i2c/mpr.h
diff options
context:
space:
mode:
authorNitin Garg <nitin.garg@freescale.com>2012-03-15 14:48:04 -0500
committerNitin Garg <nitin.garg@freescale.com>2012-03-15 14:48:04 -0500
commit3a4cc222f95c22e84a50b2a4934ca5e208943b3a (patch)
tree1d6923cc71dbc7e8038804eb0e893ae427bb78ff /include/linux/i2c/mpr.h
parentd1da121bf06cb08e49485dbe419f5c5336d567b8 (diff)
ENGR00177017: Improve the mpr121 capacitive button responsiveness on iMX53 SMDimx-android-r14-alpha
The capacitive buttons on iMX53 SMD sometimes misses the touch events. Improve the sentivity by reducing touch threshold and enabling baseline tracking in ECR. Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
Diffstat (limited to 'include/linux/i2c/mpr.h')
-rw-r--r--include/linux/i2c/mpr.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/i2c/mpr.h b/include/linux/i2c/mpr.h
index ded00db775f3..8dbbee648098 100644
--- a/include/linux/i2c/mpr.h
+++ b/include/linux/i2c/mpr.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2010-2012 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -43,6 +43,7 @@
* should be write at last.
*/
#define ELECTRODE_CONF_ADDR 0x5e
+#define ECR_CL_BT_5BIT_VAL 0x80
#define AUTO_CONFIG_CTRL_ADDR 0x7b
/* AUTO_CONFIG_USL: Upper Limit for auto baseline search, this
* register is related to VDD supplied on your board, the value of
@@ -55,7 +56,7 @@
#define AUTO_CONFIG_TL_ADDR 0x7f
/* Threshold of touch/release trigger */
-#define TOUCH_THRESHOLD 0x0f
+#define TOUCH_THRESHOLD 0x0c
#define RELEASE_THRESHOLD 0x0a
/* Mask Button bits of STATUS_0 & STATUS_1 register */
#define TOUCH_STATUS_MASK 0xfff