diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-05-20 05:51:59 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-20 05:51:59 -0400 |
commit | fac3d3555568de1755025a9609daf492dd548a59 (patch) | |
tree | 694d468070c32d9a01223ef76c2610ec3f5d4ff7 /arch | |
parent | d48562abe29ceee66a6aad7b565b021ddd7f598a (diff) | |
parent | 41d8289d161e23e9cff78c914b6f37f30e627ea2 (diff) |
ARM: Merge for-2635-4/ts-machines
Merge branch 'for-2635-4/ts-machines' into for-2635-4/partial1
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c64xx/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c | 12 | ||||
-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 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/cpu.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/include/mach/map.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 11 |
10 files changed, 49 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig index 69e9fbfea917..1f2f412b0200 100644 --- a/arch/arm/mach-s3c64xx/Kconfig +++ b/arch/arm/mach-s3c64xx/Kconfig | |||
@@ -90,6 +90,7 @@ config MACH_SMDK6410 | |||
90 | select S3C_DEV_HSMMC1 | 90 | select S3C_DEV_HSMMC1 |
91 | select S3C_DEV_I2C1 | 91 | select S3C_DEV_I2C1 |
92 | select S3C_DEV_FB | 92 | select S3C_DEV_FB |
93 | select SAMSUNG_DEV_TS | ||
93 | select S3C_DEV_USB_HOST | 94 | select S3C_DEV_USB_HOST |
94 | select S3C_DEV_USB_HSOTG | 95 | select S3C_DEV_USB_HSOTG |
95 | select S3C64XX_SETUP_SDHCI | 96 | select S3C64XX_SETUP_SDHCI |
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index 9d51455feb31..d0c6e9bdc686 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c | |||
@@ -64,6 +64,8 @@ | |||
64 | #include <plat/clock.h> | 64 | #include <plat/clock.h> |
65 | #include <plat/devs.h> | 65 | #include <plat/devs.h> |
66 | #include <plat/cpu.h> | 66 | #include <plat/cpu.h> |
67 | #include <plat/adc.h> | ||
68 | #include <plat/ts.h> | ||
67 | 69 | ||
68 | #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK | 70 | #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK |
69 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 71 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
@@ -262,6 +264,8 @@ static struct platform_device *smdk6410_devices[] __initdata = { | |||
262 | &smdk6410_lcd_powerdev, | 264 | &smdk6410_lcd_powerdev, |
263 | 265 | ||
264 | &smdk6410_smsc911x, | 266 | &smdk6410_smsc911x, |
267 | &s3c_device_adc, | ||
268 | &s3c_device_ts, | ||
265 | }; | 269 | }; |
266 | 270 | ||
267 | #ifdef CONFIG_REGULATOR | 271 | #ifdef CONFIG_REGULATOR |
@@ -596,6 +600,12 @@ static struct i2c_board_info i2c_devs1[] __initdata = { | |||
596 | { I2C_BOARD_INFO("24c128", 0x57), }, /* Samsung S524AD0XD1 */ | 600 | { I2C_BOARD_INFO("24c128", 0x57), }, /* Samsung S524AD0XD1 */ |
597 | }; | 601 | }; |
598 | 602 | ||
603 | static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = { | ||
604 | .delay = 10000, | ||
605 | .presc = 49, | ||
606 | .oversampling_shift = 2, | ||
607 | }; | ||
608 | |||
599 | static void __init smdk6410_map_io(void) | 609 | static void __init smdk6410_map_io(void) |
600 | { | 610 | { |
601 | u32 tmp; | 611 | u32 tmp; |
@@ -625,6 +635,8 @@ static void __init smdk6410_machine_init(void) | |||
625 | s3c_i2c1_set_platdata(NULL); | 635 | s3c_i2c1_set_platdata(NULL); |
626 | s3c_fb_set_platdata(&smdk6410_lcd_pdata); | 636 | s3c_fb_set_platdata(&smdk6410_lcd_pdata); |
627 | 637 | ||
638 | s3c24xx_ts_set_platdata(&s3c_ts_platform); | ||
639 | |||
628 | /* configure nCS1 width to 16 bits */ | 640 | /* configure nCS1 width to 16 bits */ |
629 | 641 | ||
630 | cs1 = __raw_readl(S3C64XX_SROM_BW) & | 642 | cs1 = __raw_readl(S3C64XX_SROM_BW) & |
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 | ||
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index 8b9566e0cc51..5649733bf815 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig | |||
@@ -26,6 +26,8 @@ config MACH_SMDKV210 | |||
26 | bool "SMDKV210" | 26 | bool "SMDKV210" |
27 | select CPU_S5PV210 | 27 | select CPU_S5PV210 |
28 | select ARCH_SPARSEMEM_ENABLE | 28 | select ARCH_SPARSEMEM_ENABLE |
29 | select SAMSUNG_DEV_ADC | ||
30 | select SAMSUNG_DEV_TS | ||
29 | help | 31 | help |
30 | Machine support for Samsung SMDKV210 | 32 | Machine support for Samsung SMDKV210 |
31 | 33 | ||
diff --git a/arch/arm/mach-s5pv210/cpu.c b/arch/arm/mach-s5pv210/cpu.c index 2b776eb5d150..359bdc8f3b66 100644 --- a/arch/arm/mach-s5pv210/cpu.c +++ b/arch/arm/mach-s5pv210/cpu.c | |||
@@ -74,6 +74,8 @@ static void s5pv210_idle(void) | |||
74 | 74 | ||
75 | void __init s5pv210_map_io(void) | 75 | void __init s5pv210_map_io(void) |
76 | { | 76 | { |
77 | s3c_device_adc.name = "s3c64xx-adc"; | ||
78 | |||
77 | iotable_init(s5pv210_iodesc, ARRAY_SIZE(s5pv210_iodesc)); | 79 | iotable_init(s5pv210_iodesc, ARRAY_SIZE(s5pv210_iodesc)); |
78 | } | 80 | } |
79 | 81 | ||
diff --git a/arch/arm/mach-s5pv210/include/mach/map.h b/arch/arm/mach-s5pv210/include/mach/map.h index 5adcb9f26e44..e85957083055 100644 --- a/arch/arm/mach-s5pv210/include/mach/map.h +++ b/arch/arm/mach-s5pv210/include/mach/map.h | |||
@@ -75,8 +75,11 @@ | |||
75 | /* AC97 */ | 75 | /* AC97 */ |
76 | #define S5PV210_PA_AC97 0xE2200000 | 76 | #define S5PV210_PA_AC97 0xE2200000 |
77 | 77 | ||
78 | #define S5PV210_PA_ADC (0xE1700000) | ||
79 | |||
78 | /* compatibiltiy defines. */ | 80 | /* compatibiltiy defines. */ |
79 | #define S3C_PA_UART S5PV210_PA_UART | 81 | #define S3C_PA_UART S5PV210_PA_UART |
80 | #define S3C_PA_IIC S5PV210_PA_IIC0 | 82 | #define S3C_PA_IIC S5PV210_PA_IIC0 |
83 | #define SAMSUNG_PA_ADC S5PV210_PA_ADC | ||
81 | 84 | ||
82 | #endif /* __ASM_ARCH_MAP_H */ | 85 | #endif /* __ASM_ARCH_MAP_H */ |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 3c29e18528a5..b92beb6831ae 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <plat/s5pv210.h> | 25 | #include <plat/s5pv210.h> |
26 | #include <plat/devs.h> | 26 | #include <plat/devs.h> |
27 | #include <plat/cpu.h> | 27 | #include <plat/cpu.h> |
28 | #include <plat/adc.h> | ||
29 | #include <plat/ts.h> | ||
28 | 30 | ||
29 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 31 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
30 | #define S5PV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 32 | #define S5PV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
@@ -74,6 +76,14 @@ static struct s3c2410_uartcfg smdkv210_uartcfgs[] __initdata = { | |||
74 | static struct platform_device *smdkv210_devices[] __initdata = { | 76 | static struct platform_device *smdkv210_devices[] __initdata = { |
75 | &s5pv210_device_iis0, | 77 | &s5pv210_device_iis0, |
76 | &s5pv210_device_ac97, | 78 | &s5pv210_device_ac97, |
79 | &s3c_device_adc, | ||
80 | &s3c_device_ts, | ||
81 | }; | ||
82 | |||
83 | static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = { | ||
84 | .delay = 10000, | ||
85 | .presc = 49, | ||
86 | .oversampling_shift = 2, | ||
77 | }; | 87 | }; |
78 | 88 | ||
79 | static void __init smdkv210_map_io(void) | 89 | static void __init smdkv210_map_io(void) |
@@ -85,6 +95,7 @@ static void __init smdkv210_map_io(void) | |||
85 | 95 | ||
86 | static void __init smdkv210_machine_init(void) | 96 | static void __init smdkv210_machine_init(void) |
87 | { | 97 | { |
98 | s3c24xx_ts_set_platdata(&s3c_ts_platform); | ||
88 | platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices)); | 99 | platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices)); |
89 | } | 100 | } |
90 | 101 | ||