Permalink
Browse files

ts_tscadc: add defines for 4x and 16x oversampling

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
1 parent 7a94805 commit 3546c31dd831b6feece6639d2668e819f7c83264 @koenkooi koenkooi committed May 19, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 drivers/input/touchscreen/ti_tscadc.c
@@ -83,6 +83,8 @@ static DEVICE_ATTR(ain8, S_IRUGO, do_adc_sample, NULL);
#define TSCADC_STEPCONFIG_MODE_SWCONT 0x1
#define TSCADC_STEPCONFIG_MODE_SWONESHOT 0x0
#define TSCADC_STEPCONFIG_2SAMPLES_AVG (1 << 4)
+#define TSCADC_STEPCONFIG_4SAMPLES_AVG (1 << 3)
+#define TSCADC_STEPCONFIG_16SAMPLES_AVG (1 << 2)
#define TSCADC_STEPCONFIG_NO_AVG 0
#define TSCADC_STEPCONFIG_XPP BIT(5)
#define TSCADC_STEPCONFIG_XNN BIT(6)

0 comments on commit 3546c31

Please sign in to comment.