summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schaeffer <daniel.schaeffer@timesys.com>2008-09-16 11:28:12 -0400
committerDaniel Schaeffer <daniel.schaeffer@timesys.com>2008-09-16 11:28:12 -0400
commit341eb9e936e686e0f69630a004cc7dc158aa530f (patch)
tree0deb3c17401ddbd666f93dac59b58362ae831840
parent417e355921b5800925613cf337ee9c11e57683e2 (diff)
Changed touchscreen parameters to fix the right side2.6.24-mx31pdk-200809161528
touchscreen input. Signed-off-by: Justin Waters <justin.waters@timesys.com> Acked-by: Daniel Schaeffer <daniel.schaeffer@timesys.com>
-rw-r--r--drivers/mxc/pmic/mc13783/pmic_adc_defs.h8
-rw-r--r--include/asm-arm/arch-mxc/pmic_adc.h10
2 files changed, 4 insertions, 14 deletions
diff --git a/drivers/mxc/pmic/mc13783/pmic_adc_defs.h b/drivers/mxc/pmic/mc13783/pmic_adc_defs.h
index db1b08232c77..51ab7bb0e3a4 100644
--- a/drivers/mxc/pmic/mc13783/pmic_adc_defs.h
+++ b/drivers/mxc/pmic/mc13783/pmic_adc_defs.h
@@ -43,11 +43,11 @@
/* Length of X and Y Touch screen filters */
#define FILTLEN 3
-#define TS_X_MAX 1000
-#define TS_Y_MAX 1000
+#define TS_X_MAX 1024
+#define TS_Y_MAX 1024
-#define TS_X_MIN 80
-#define TS_Y_MIN 80
+#define TS_X_MIN 2
+#define TS_Y_MIN 2
#define MC13783_ADC0_TS_M_LSH 14
#define MC13783_ADC0_TS_M_WID 3
diff --git a/include/asm-arm/arch-mxc/pmic_adc.h b/include/asm-arm/arch-mxc/pmic_adc.h
index 832cfe351403..141c44086051 100644
--- a/include/asm-arm/arch-mxc/pmic_adc.h
+++ b/include/asm-arm/arch-mxc/pmic_adc.h
@@ -100,16 +100,6 @@
*/
#define TOUCH_SCREEN_READ_UNINSTALL _IOWR('D',5, int)
-/*! @{ */
-/*!
- * @name Touch Screen minimum and maximum values
- */
-#define TS_X_MIN 80 /*! < Minimum X */
-#define TS_Y_MIN 80 /*! < Minimum Y */
-
-#define TS_X_MAX 1000 /*! < Maximum X */
-#define TS_Y_MAX 1000 /*! < Maximum Y */
-/*! @} */
/*!
* This enumeration defines input channels for PMIC ADC
*/