aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches/0015-s3c2410_ts-gta01.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 00:02:36 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 00:02:36 +0000
commitb9dfb81f2aa45be745a8aed9684076210aed4152 (patch)
treeaceadd7f37096911a29c929988cbcf7c964a1c0b /target/linux/s3c24xx/patches/0015-s3c2410_ts-gta01.patch.patch
parent4571721ec22de116ad9998657e0a3c12da6405fb (diff)
downloadupstream-b9dfb81f2aa45be745a8aed9684076210aed4152.tar.gz
upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.tar.bz2
upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.zip
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
SVN-Revision: 13609
Diffstat (limited to 'target/linux/s3c24xx/patches/0015-s3c2410_ts-gta01.patch.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches/0015-s3c2410_ts-gta01.patch.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0015-s3c2410_ts-gta01.patch.patch b/target/linux/s3c24xx/patches/0015-s3c2410_ts-gta01.patch.patch
new file mode 100755
index 0000000000..5ff3328afe
--- /dev/null
+++ b/target/linux/s3c24xx/patches/0015-s3c2410_ts-gta01.patch.patch
@@ -0,0 +1,53 @@
+From 4c5bb8608de01a165a32432a4091613bb12303fc Mon Sep 17 00:00:00 2001
+From: mokopatches <mokopatches@openmoko.org>
+Date: Wed, 16 Jul 2008 14:44:49 +0100
+Subject: [PATCH] s3c2410_ts-gta01.patch
+
+---
+ arch/arm/mach-s3c2410/mach-gta01.c | 9 +++++++++
+ 1 files changed, 9 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c
+index e690ed7..3462c7f 100644
+--- a/arch/arm/mach-s3c2410/mach-gta01.c
++++ b/arch/arm/mach-s3c2410/mach-gta01.c
+@@ -33,6 +33,7 @@
+ #include <linux/workqueue.h>
+ #include <linux/platform_device.h>
+ #include <linux/serial_core.h>
++#include <asm/arch/ts.h>
+ #include <linux/spi/spi.h>
+ #include <linux/spi/spi_bitbang.h>
+ #include <linux/mmc/mmc.h>
+@@ -362,6 +363,7 @@ static struct platform_device *gta01_devices[] __initdata = {
+ &s3c_device_sdi,
+ &s3c_device_usbgadget,
+ &s3c_device_nand,
++ &s3c_device_ts,
+ };
+
+ static struct s3c2410_nand_set gta01_nand_sets[] = {
+@@ -434,6 +436,12 @@ static struct s3c2410_udc_mach_info gta01_udc_cfg = {
+ .vbus_draw = gta01_udc_vbus_draw,
+ };
+
++static struct s3c2410_ts_mach_info gta01_ts_cfg = {
++ .delay = 10000,
++ .presc = 65,
++ .oversampling_shift = 5,
++};
++
+ /* SPI */
+
+ static struct spi_board_info gta01_spi_board_info[] = {
+@@ -599,6 +607,7 @@ static void __init gta01_machine_init(void)
+
+ INIT_WORK(&gta01_udc_vbus_drawer.work, __gta01_udc_vbus_draw);
+ s3c24xx_udc_set_platdata(&gta01_udc_cfg);
++ set_s3c2410ts_info(&gta01_ts_cfg);
+
+ /* Set LCD_RESET / XRES to high */
+ s3c2410_gpio_cfgpin(S3C2410_GPC6, S3C2410_GPIO_OUTPUT);
+--
+1.5.6.3
+