aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c2410/mach-gta01.c
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2008-11-19 17:09:55 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:55 +0000
commit570ef53eaf82f98c5d0cba9de04fea0ff025f43d (patch)
tree6be1e8a0f8d888cbbbe68d35830da06a7a92d42b /arch/arm/mach-s3c2410/mach-gta01.c
parent04a873939ef9968128e17715c3f46ddb5150d9e0 (diff)
commit 5f42e24d361cd83178fe8da9d68efbf41a011483
Add missing initialization for the touchscreen driver for the gta01 platform. Signed-off-by: Mike Westerhof <mwester@dls.net>
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-gta01.c')
-rw-r--r--arch/arm/mach-s3c2410/mach-gta01.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c
index a77ed3dbdc9..e518de7efa5 100644
--- a/arch/arm/mach-s3c2410/mach-gta01.c
+++ b/arch/arm/mach-s3c2410/mach-gta01.c
@@ -494,8 +494,15 @@ static struct s3c2410_udc_mach_info gta01_udc_cfg = {
static struct s3c2410_ts_mach_info gta01_ts_cfg = {
.delay = 10000,
- .presc = 65,
+ .presc = 50000000 / 1000000, /* 50 MHz PCLK / 1MHz */
+ /* simple averaging, 2^n samples */
.oversampling_shift = 5,
+ /* averaging filter length, 2^n */
+ .excursion_filter_len_bits = 5,
+ /* flagged for beauty contest on next sample if differs from
+ * average more than this
+ */
+ .reject_threshold_vs_avg = 2,
};
/* SPI */