1 From 31fc0f2354bb65ac59ccc1e257fdbd622bda9aef Mon Sep 17 00:00:00 2001
2 From: mokopatches <mokopatches@openmoko.org>
3 Date: Fri, 4 Apr 2008 11:32:30 +0100
4 Subject: [PATCH] s3c2410_ts-gta01.patch
7 arch/arm/mach-s3c2410/mach-gta01.c | 9 +++++++++
8 1 files changed, 9 insertions(+), 0 deletions(-)
10 diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c
11 index e690ed7..3462c7f 100644
12 --- a/arch/arm/mach-s3c2410/mach-gta01.c
13 +++ b/arch/arm/mach-s3c2410/mach-gta01.c
15 #include <linux/workqueue.h>
16 #include <linux/platform_device.h>
17 #include <linux/serial_core.h>
18 +#include <asm/arch/ts.h>
19 #include <linux/spi/spi.h>
20 #include <linux/spi/spi_bitbang.h>
21 #include <linux/mmc/mmc.h>
22 @@ -362,6 +363,7 @@ static struct platform_device *gta01_devices[] __initdata = {
24 &s3c_device_usbgadget,
29 static struct s3c2410_nand_set gta01_nand_sets[] = {
30 @@ -434,6 +436,12 @@ static struct s3c2410_udc_mach_info gta01_udc_cfg = {
31 .vbus_draw = gta01_udc_vbus_draw,
34 +static struct s3c2410_ts_mach_info gta01_ts_cfg = {
37 + .oversampling_shift = 5,
42 static struct spi_board_info gta01_spi_board_info[] = {
43 @@ -599,6 +607,7 @@ static void __init gta01_machine_init(void)
45 INIT_WORK(>a01_udc_vbus_drawer.work, __gta01_udc_vbus_draw);
46 s3c24xx_udc_set_platdata(>a01_udc_cfg);
47 + set_s3c2410ts_info(>a01_ts_cfg);
49 /* Set LCD_RESET / XRES to high */
50 s3c2410_gpio_cfgpin(S3C2410_GPC6, S3C2410_GPIO_OUTPUT);