diff options
author | Naveen Krishna Ch <ch.naveen@samsung.com> | 2010-06-30 08:50:24 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-08-05 05:30:50 -0400 |
commit | 327b90305e9c8a5fecf663788301927efbeaeb6d (patch) | |
tree | 2591b4d4a0ce3025300c1f27360d652756a862c2 /arch/arm/mach-s5pc100 | |
parent | 66194a74c290e7e082c276329ee84d54669c82fc (diff) |
ARM: S5PC100: Add Touchscreen support.
This patch adds touchscreen support for S5PC100.
Signed-off-by: Naveen Krishna Ch <ch.naveen@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pc100')
-rw-r--r-- | arch/arm/mach-s5pc100/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pc100/cpu.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-s5pc100/include/mach/map.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-s5pc100/mach-smdkc100.c | 15 |
4 files changed, 23 insertions, 1 deletions
diff --git a/arch/arm/mach-s5pc100/Kconfig b/arch/arm/mach-s5pc100/Kconfig index 34350ae59f95..ef6b7c845b18 100644 --- a/arch/arm/mach-s5pc100/Kconfig +++ b/arch/arm/mach-s5pc100/Kconfig | |||
@@ -44,12 +44,14 @@ config S5PC100_SETUP_SDHCI_GPIO | |||
44 | config MACH_SMDKC100 | 44 | config MACH_SMDKC100 |
45 | bool "SMDKC100" | 45 | bool "SMDKC100" |
46 | select CPU_S5PC100 | 46 | select CPU_S5PC100 |
47 | select SAMSUNG_DEV_ADC | ||
47 | select S3C_DEV_FB | 48 | select S3C_DEV_FB |
48 | select S3C_DEV_I2C1 | 49 | select S3C_DEV_I2C1 |
49 | select SAMSUNG_DEV_IDE | 50 | select SAMSUNG_DEV_IDE |
50 | select S3C_DEV_HSMMC | 51 | select S3C_DEV_HSMMC |
51 | select S3C_DEV_HSMMC1 | 52 | select S3C_DEV_HSMMC1 |
52 | select S3C_DEV_HSMMC2 | 53 | select S3C_DEV_HSMMC2 |
54 | select SAMSUNG_DEV_TS | ||
53 | select S5PC100_SETUP_FB_24BPP | 55 | select S5PC100_SETUP_FB_24BPP |
54 | select S5PC100_SETUP_I2C1 | 56 | select S5PC100_SETUP_I2C1 |
55 | select S5PC100_SETUP_IDE | 57 | select S5PC100_SETUP_IDE |
diff --git a/arch/arm/mach-s5pc100/cpu.c b/arch/arm/mach-s5pc100/cpu.c index 5ce66de1a93d..799d22f41fcd 100644 --- a/arch/arm/mach-s5pc100/cpu.c +++ b/arch/arm/mach-s5pc100/cpu.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <plat/ata-core.h> | 41 | #include <plat/ata-core.h> |
42 | #include <plat/iic-core.h> | 42 | #include <plat/iic-core.h> |
43 | #include <plat/sdhci.h> | 43 | #include <plat/sdhci.h> |
44 | #include <plat/adc-core.h> | ||
44 | #include <plat/onenand-core.h> | 45 | #include <plat/onenand-core.h> |
45 | 46 | ||
46 | #include <plat/s5pc100.h> | 47 | #include <plat/s5pc100.h> |
@@ -88,6 +89,8 @@ void __init s5pc100_map_io(void) | |||
88 | s5pc100_default_sdhci1(); | 89 | s5pc100_default_sdhci1(); |
89 | s5pc100_default_sdhci2(); | 90 | s5pc100_default_sdhci2(); |
90 | 91 | ||
92 | s3c_adc_setname("s3c64xx-adc"); | ||
93 | |||
91 | /* the i2c devices are directly compatible with s3c2440 */ | 94 | /* the i2c devices are directly compatible with s3c2440 */ |
92 | s3c_i2c0_setname("s3c2440-i2c"); | 95 | s3c_i2c0_setname("s3c2440-i2c"); |
93 | s3c_i2c1_setname("s3c2440-i2c"); | 96 | s3c_i2c1_setname("s3c2440-i2c"); |
diff --git a/arch/arm/mach-s5pc100/include/mach/map.h b/arch/arm/mach-s5pc100/include/mach/map.h index aa251908f366..5a1096691006 100644 --- a/arch/arm/mach-s5pc100/include/mach/map.h +++ b/arch/arm/mach-s5pc100/include/mach/map.h | |||
@@ -106,6 +106,8 @@ | |||
106 | #define S5PC100_PA_PCM0 0xF2400000 | 106 | #define S5PC100_PA_PCM0 0xF2400000 |
107 | #define S5PC100_PA_PCM1 0xF2500000 | 107 | #define S5PC100_PA_PCM1 0xF2500000 |
108 | 108 | ||
109 | #define S5PC100_PA_TSADC (0xF3000000) | ||
110 | |||
109 | /* KEYPAD */ | 111 | /* KEYPAD */ |
110 | #define S5PC100_PA_KEYPAD (0xF3100000) | 112 | #define S5PC100_PA_KEYPAD (0xF3100000) |
111 | 113 | ||
@@ -132,11 +134,11 @@ | |||
132 | #define S3C_PA_HSMMC1 S5PC100_PA_HSMMC(1) | 134 | #define S3C_PA_HSMMC1 S5PC100_PA_HSMMC(1) |
133 | #define S3C_PA_HSMMC2 S5PC100_PA_HSMMC(2) | 135 | #define S3C_PA_HSMMC2 S5PC100_PA_HSMMC(2) |
134 | #define S3C_PA_KEYPAD S5PC100_PA_KEYPAD | 136 | #define S3C_PA_KEYPAD S5PC100_PA_KEYPAD |
135 | #define S3C_PA_TSADC S5PC100_PA_TSADC | ||
136 | #define S3C_PA_ONENAND S5PC100_PA_ONENAND | 137 | #define S3C_PA_ONENAND S5PC100_PA_ONENAND |
137 | #define S3C_PA_ONENAND_BUF S5PC100_PA_ONENAND_BUF | 138 | #define S3C_PA_ONENAND_BUF S5PC100_PA_ONENAND_BUF |
138 | #define S3C_SZ_ONENAND_BUF S5PC100_SZ_ONENAND_BUF | 139 | #define S3C_SZ_ONENAND_BUF S5PC100_SZ_ONENAND_BUF |
139 | 140 | ||
141 | #define SAMSUNG_PA_ADC S5PC100_PA_TSADC | ||
140 | #define SAMSUNG_PA_CFCON S5PC100_PA_CFCON | 142 | #define SAMSUNG_PA_CFCON S5PC100_PA_CFCON |
141 | 143 | ||
142 | #endif /* __ASM_ARCH_C100_MAP_H */ | 144 | #endif /* __ASM_ARCH_C100_MAP_H */ |
diff --git a/arch/arm/mach-s5pc100/mach-smdkc100.c b/arch/arm/mach-s5pc100/mach-smdkc100.c index b97830ab396a..1c637c9ed1bd 100644 --- a/arch/arm/mach-s5pc100/mach-smdkc100.c +++ b/arch/arm/mach-s5pc100/mach-smdkc100.c | |||
@@ -43,6 +43,8 @@ | |||
43 | #include <plat/fb.h> | 43 | #include <plat/fb.h> |
44 | #include <plat/iic.h> | 44 | #include <plat/iic.h> |
45 | #include <plat/ata.h> | 45 | #include <plat/ata.h> |
46 | #include <plat/adc.h> | ||
47 | #include <plat/ts.h> | ||
46 | 48 | ||
47 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 49 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
48 | #define S5PC100_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 50 | #define S5PC100_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
@@ -155,18 +157,29 @@ static struct s3c_ide_platdata smdkc100_ide_pdata __initdata = { | |||
155 | }; | 157 | }; |
156 | 158 | ||
157 | static struct platform_device *smdkc100_devices[] __initdata = { | 159 | static struct platform_device *smdkc100_devices[] __initdata = { |
160 | <<<<<<< HEAD:arch/arm/mach-s5pc100/mach-smdkc100.c | ||
158 | &s3c_device_cfcon, | 161 | &s3c_device_cfcon, |
162 | ======= | ||
163 | &s3c_device_adc, | ||
164 | >>>>>>> c1b6d71... ARM: S5PC100: Add Touchscreen support.:arch/arm/mach-s5pc100/mach-smdkc100.c | ||
159 | &s3c_device_i2c0, | 165 | &s3c_device_i2c0, |
160 | &s3c_device_i2c1, | 166 | &s3c_device_i2c1, |
161 | &s3c_device_fb, | 167 | &s3c_device_fb, |
162 | &s3c_device_hsmmc0, | 168 | &s3c_device_hsmmc0, |
163 | &s3c_device_hsmmc1, | 169 | &s3c_device_hsmmc1, |
164 | &s3c_device_hsmmc2, | 170 | &s3c_device_hsmmc2, |
171 | &s3c_device_ts, | ||
165 | &smdkc100_lcd_powerdev, | 172 | &smdkc100_lcd_powerdev, |
166 | &s5pc100_device_iis0, | 173 | &s5pc100_device_iis0, |
167 | &s5pc100_device_ac97, | 174 | &s5pc100_device_ac97, |
168 | }; | 175 | }; |
169 | 176 | ||
177 | static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = { | ||
178 | .delay = 10000, | ||
179 | .presc = 49, | ||
180 | .oversampling_shift = 2, | ||
181 | }; | ||
182 | |||
170 | static void __init smdkc100_map_io(void) | 183 | static void __init smdkc100_map_io(void) |
171 | { | 184 | { |
172 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 185 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
@@ -176,6 +189,8 @@ static void __init smdkc100_map_io(void) | |||
176 | 189 | ||
177 | static void __init smdkc100_machine_init(void) | 190 | static void __init smdkc100_machine_init(void) |
178 | { | 191 | { |
192 | s3c24xx_ts_set_platdata(&s3c_ts_platform); | ||
193 | |||
179 | /* I2C */ | 194 | /* I2C */ |
180 | s3c_i2c0_set_platdata(NULL); | 195 | s3c_i2c0_set_platdata(NULL); |
181 | s3c_i2c1_set_platdata(NULL); | 196 | s3c_i2c1_set_platdata(NULL); |