[ar71xx] generate firmware image for the D-Link DIR-615 C1 board
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1019-s3c2410_ts-gta01.patch.patch
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
5
6 ---
7 arch/arm/mach-s3c2410/mach-gta01.c | 9 +++++++++
8 1 files changed, 9 insertions(+), 0 deletions(-)
9
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
14 @@ -33,6 +33,7 @@
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 = {
23 &s3c_device_sdi,
24 &s3c_device_usbgadget,
25 &s3c_device_nand,
26 + &s3c_device_ts,
27 };
28
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,
32 };
33
34 +static struct s3c2410_ts_mach_info gta01_ts_cfg = {
35 + .delay = 10000,
36 + .presc = 65,
37 + .oversampling_shift = 5,
38 +};
39 +
40 /* SPI */
41
42 static struct spi_board_info gta01_spi_board_info[] = {
43 @@ -599,6 +607,7 @@ static void __init gta01_machine_init(void)
44
45 INIT_WORK(&gta01_udc_vbus_drawer.work, __gta01_udc_vbus_draw);
46 s3c24xx_udc_set_platdata(&gta01_udc_cfg);
47 + set_s3c2410ts_info(&gta01_ts_cfg);
48
49 /* Set LCD_RESET / XRES to high */
50 s3c2410_gpio_cfgpin(S3C2410_GPC6, S3C2410_GPIO_OUTPUT);
51 --
52 1.5.6.5
53
This page took 0.04325 seconds and 5 git commands to generate.