diff options
author | Naveen Krishna Ch <ch.naveen@samsung.com> | 2010-05-19 22:39:53 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-20 01:15:21 -0400 |
commit | 09cae8f195c5be8d3102022c7ecd1653b3653233 (patch) | |
tree | 270f2869daf98c5ad8e50923ffbf92e158a82b5e /arch/arm/mach-s5p6440 | |
parent | 85b14a3fc4036473ec6776d8e5d92c022155d581 (diff) |
ARM: S5P6440: Add Touchscreen support for S5P6440
This patch adds touchscreen support for S5P6440.
Signed-off-by: Naveen Krishna Ch <ch.naveen@samsung.com
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
[ben-linux@fluff.org: minor header fix]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s5p6440')
-rw-r--r-- | arch/arm/mach-s5p6440/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5p6440/cpu.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5p6440/include/mach/map.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-s5p6440/mach-smdk6440.c | 12 |
4 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-s5p6440/Kconfig b/arch/arm/mach-s5p6440/Kconfig index 77aeffd17330..ef00cb716cba 100644 --- a/arch/arm/mach-s5p6440/Kconfig +++ b/arch/arm/mach-s5p6440/Kconfig | |||
@@ -16,6 +16,8 @@ config CPU_S5P6440 | |||
16 | config MACH_SMDK6440 | 16 | config MACH_SMDK6440 |
17 | bool "SMDK6440" | 17 | bool "SMDK6440" |
18 | select CPU_S5P6440 | 18 | select CPU_S5P6440 |
19 | select SAMSUNG_DEV_TS | ||
20 | select SAMSUNG_DEV_ADC | ||
19 | help | 21 | help |
20 | Machine support for the Samsung SMDK6440 | 22 | Machine support for the Samsung SMDK6440 |
21 | 23 | ||
diff --git a/arch/arm/mach-s5p6440/cpu.c b/arch/arm/mach-s5p6440/cpu.c index ca3b3206e6f8..b2fe6a58155a 100644 --- a/arch/arm/mach-s5p6440/cpu.c +++ b/arch/arm/mach-s5p6440/cpu.c | |||
@@ -61,6 +61,7 @@ static void s5p6440_idle(void) | |||
61 | void __init s5p6440_map_io(void) | 61 | void __init s5p6440_map_io(void) |
62 | { | 62 | { |
63 | /* initialize any device information early */ | 63 | /* initialize any device information early */ |
64 | s3c_device_adc.name = "s3c64xx-adc"; | ||
64 | } | 65 | } |
65 | 66 | ||
66 | void __init s5p6440_init_clocks(int xtal) | 67 | void __init s5p6440_init_clocks(int xtal) |
diff --git a/arch/arm/mach-s5p6440/include/mach/map.h b/arch/arm/mach-s5p6440/include/mach/map.h index 72aedadd412c..13c1ee718d30 100644 --- a/arch/arm/mach-s5p6440/include/mach/map.h +++ b/arch/arm/mach-s5p6440/include/mach/map.h | |||
@@ -69,8 +69,11 @@ | |||
69 | /* PCM */ | 69 | /* PCM */ |
70 | #define S5P6440_PA_PCM 0xF2100000 | 70 | #define S5P6440_PA_PCM 0xF2100000 |
71 | 71 | ||
72 | #define S5P6440_PA_ADC (0xF3000000) | ||
73 | |||
72 | /* compatibiltiy defines. */ | 74 | /* compatibiltiy defines. */ |
73 | #define S3C_PA_UART S5P6440_PA_UART | 75 | #define S3C_PA_UART S5P6440_PA_UART |
74 | #define S3C_PA_IIC S5P6440_PA_IIC0 | 76 | #define S3C_PA_IIC S5P6440_PA_IIC0 |
77 | #define SAMSUNG_PA_ADC S5P6440_PA_ADC | ||
75 | 78 | ||
76 | #endif /* __ASM_ARCH_MAP_H */ | 79 | #endif /* __ASM_ARCH_MAP_H */ |
diff --git a/arch/arm/mach-s5p6440/mach-smdk6440.c b/arch/arm/mach-s5p6440/mach-smdk6440.c index d7fede971ca6..f9948174ba4e 100644 --- a/arch/arm/mach-s5p6440/mach-smdk6440.c +++ b/arch/arm/mach-s5p6440/mach-smdk6440.c | |||
@@ -38,6 +38,8 @@ | |||
38 | #include <plat/devs.h> | 38 | #include <plat/devs.h> |
39 | #include <plat/cpu.h> | 39 | #include <plat/cpu.h> |
40 | #include <plat/pll.h> | 40 | #include <plat/pll.h> |
41 | #include <plat/adc.h> | ||
42 | #include <plat/ts.h> | ||
41 | 43 | ||
42 | #define S5P6440_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 44 | #define S5P6440_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
43 | S3C2410_UCON_RXILEVEL | \ | 45 | S3C2410_UCON_RXILEVEL | \ |
@@ -85,6 +87,14 @@ static struct s3c2410_uartcfg smdk6440_uartcfgs[] __initdata = { | |||
85 | 87 | ||
86 | static struct platform_device *smdk6440_devices[] __initdata = { | 88 | static struct platform_device *smdk6440_devices[] __initdata = { |
87 | &s5p6440_device_iis, | 89 | &s5p6440_device_iis, |
90 | &s3c_device_adc, | ||
91 | &s3c_device_ts, | ||
92 | }; | ||
93 | |||
94 | static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = { | ||
95 | .delay = 10000, | ||
96 | .presc = 49, | ||
97 | .oversampling_shift = 2, | ||
88 | }; | 98 | }; |
89 | 99 | ||
90 | static void __init smdk6440_map_io(void) | 100 | static void __init smdk6440_map_io(void) |
@@ -96,6 +106,8 @@ static void __init smdk6440_map_io(void) | |||
96 | 106 | ||
97 | static void __init smdk6440_machine_init(void) | 107 | static void __init smdk6440_machine_init(void) |
98 | { | 108 | { |
109 | s3c24xx_ts_set_platdata(&s3c_ts_platform); | ||
110 | |||
99 | platform_add_devices(smdk6440_devices, ARRAY_SIZE(smdk6440_devices)); | 111 | platform_add_devices(smdk6440_devices, ARRAY_SIZE(smdk6440_devices)); |
100 | } | 112 | } |
101 | 113 | ||