summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0049-ts_tscadc-add-defines-for-4x-and-16x-oversampling.patch
blob: ad1ad73b25568a57458e0e0f429f6469204f7ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From e55b5da533e82e6f61c7ccd947623bce7a45ebf9 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Sat, 19 May 2012 11:29:14 +0200
Subject: [PATCH 49/79] ts_tscadc: add defines for 4x and 16x oversampling

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 drivers/input/touchscreen/ti_tscadc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/input/touchscreen/ti_tscadc.c b/drivers/input/touchscreen/ti_tscadc.c
index 4fd2e18..acb62d1 100644
--- a/drivers/input/touchscreen/ti_tscadc.c
+++ b/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)
-- 
1.7.10