Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ts_tscadc: add defines for 4x and 16x oversampling

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
commit 3546c31dd831b6feece6639d2668e819f7c83264 1 parent 7a94805
@koenkooi koenkooi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  drivers/input/touchscreen/ti_tscadc.c
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.