diff options
author | Justin Waters <justin.waters@timesys.com> | 2008-09-15 16:48:31 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2008-09-16 10:22:17 -0400 |
commit | 39917c7cc0c971909a2023d5960bd7abbbb67e4b (patch) | |
tree | 116df826e3b25b6810ce8839bfe532f688b2ba9a /drivers/mxc/pmic/mc13783/pmic_adc_defs.h | |
parent | 7dfe8145a9788da7dd0fc055f4fe0b22511eb357 (diff) |
Cleanup mxc touchscreen driver
The mxc touchscreen driver, based on the Freescale Atlas Chip and i.MX chips,
is a mess. This is my attempt to clean it up quite a bit, and I think it's
a definite improvement. There are still issues on large displays near the
higher X coordinates, but I believe this is a hardware issue.
Signed-off-by: Justin Waters <justin.waters@timesys.com>
Diffstat (limited to 'drivers/mxc/pmic/mc13783/pmic_adc_defs.h')
-rw-r--r-- | drivers/mxc/pmic/mc13783/pmic_adc_defs.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/drivers/mxc/pmic/mc13783/pmic_adc_defs.h b/drivers/mxc/pmic/mc13783/pmic_adc_defs.h index 5278814d9c0a..eca1c8b59448 100644 --- a/drivers/mxc/pmic/mc13783/pmic_adc_defs.h +++ b/drivers/mxc/pmic/mc13783/pmic_adc_defs.h @@ -30,24 +30,14 @@ #define MAX_CHANNEL 7 -/* - * Maximun allowed variation in the three X/Y co-ordinates acquired from - * touch-screen - */ -#define DELTA_Y_MAX 50 -#define DELTA_X_MAX 50 - /* Upon clearing the filter, this is the delay in restarting the filter */ -#define FILTER_MIN_DELAY 4 - -/* Length of X and Y Touch screen filters */ -#define FILTLEN 3 +#define FILTER_MIN_DELAY 2 -#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 |