diff options
author | Romain Naour <romain.naour@openwide.fr> | 2013-01-09 21:47:03 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-03-05 06:15:55 -0500 |
commit | c1fcd403ced3ad0d63418cc1120e1562283b16ce (patch) | |
tree | 18c8e636319516ee51c29c580293c849eaea13a2 | |
parent | 7488335dcf382574c47fb27fcbad3f04a9841db6 (diff) |
ARM: SAMSUNG: Rename s5p-time to samsung-time
Signed-off-by: Naour Romain <romain.naour@openwide.fr>
Reviewed-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-exynos/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-universal_c210.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5p64x0/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-s5p64x0/mach-smdk6440.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5p64x0/mach-smdk6450.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkc110.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-torbreck.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-samsung/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/plat-samsung/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/s5p-time.h | 40 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/samsung-time.h | 42 | ||||
-rw-r--r-- | arch/arm/plat-samsung/samsung-time.c (renamed from arch/arm/plat-samsung/s5p-time.c) | 130 |
16 files changed, 137 insertions, 135 deletions
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 70f94c87479d..2f45906d6ee5 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig | |||
@@ -276,8 +276,8 @@ config MACH_UNIVERSAL_C210 | |||
276 | select S5P_DEV_ONENAND | 276 | select S5P_DEV_ONENAND |
277 | select S5P_DEV_TV | 277 | select S5P_DEV_TV |
278 | select S5P_GPIO_INT | 278 | select S5P_GPIO_INT |
279 | select S5P_HRT | ||
280 | select S5P_SETUP_MIPIPHY | 279 | select S5P_SETUP_MIPIPHY |
280 | select SAMSUNG_HRT | ||
281 | help | 281 | help |
282 | Machine support for Samsung Mobile Universal S5PC210 Reference | 282 | Machine support for Samsung Mobile Universal S5PC210 Reference |
283 | Board. | 283 | Board. |
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index 497fcb793dc1..c870b0aaa5e0 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #include <plat/mfc.h> | 41 | #include <plat/mfc.h> |
42 | #include <plat/sdhci.h> | 42 | #include <plat/sdhci.h> |
43 | #include <plat/fimc-core.h> | 43 | #include <plat/fimc-core.h> |
44 | #include <plat/s5p-time.h> | 44 | #include <plat/samsung-time.h> |
45 | #include <plat/camport.h> | 45 | #include <plat/camport.h> |
46 | 46 | ||
47 | #include <mach/map.h> | 47 | #include <mach/map.h> |
@@ -1094,7 +1094,7 @@ static void __init universal_map_io(void) | |||
1094 | exynos_init_io(NULL, 0); | 1094 | exynos_init_io(NULL, 0); |
1095 | s3c24xx_init_clocks(clk_xusbxti.rate); | 1095 | s3c24xx_init_clocks(clk_xusbxti.rate); |
1096 | s3c24xx_init_uarts(universal_uartcfgs, ARRAY_SIZE(universal_uartcfgs)); | 1096 | s3c24xx_init_uarts(universal_uartcfgs, ARRAY_SIZE(universal_uartcfgs)); |
1097 | s5p_set_timer_source(S5P_PWM2, S5P_PWM4); | 1097 | samsung_set_timer_source(SAMSUNG_PWM2, SAMSUNG_PWM4); |
1098 | } | 1098 | } |
1099 | 1099 | ||
1100 | static void s5p_tv_setup(void) | 1100 | static void s5p_tv_setup(void) |
@@ -1152,7 +1152,7 @@ MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210") | |||
1152 | .map_io = universal_map_io, | 1152 | .map_io = universal_map_io, |
1153 | .init_machine = universal_machine_init, | 1153 | .init_machine = universal_machine_init, |
1154 | .init_late = exynos_init_late, | 1154 | .init_late = exynos_init_late, |
1155 | .init_time = s5p_timer_init, | 1155 | .init_time = samsung_timer_init, |
1156 | .reserve = &universal_reserve, | 1156 | .reserve = &universal_reserve, |
1157 | .restart = exynos4_restart, | 1157 | .restart = exynos4_restart, |
1158 | MACHINE_END | 1158 | MACHINE_END |
diff --git a/arch/arm/mach-s5p64x0/Kconfig b/arch/arm/mach-s5p64x0/Kconfig index e8742cb7ddd9..5a707bdb9ea0 100644 --- a/arch/arm/mach-s5p64x0/Kconfig +++ b/arch/arm/mach-s5p64x0/Kconfig | |||
@@ -9,16 +9,16 @@ if ARCH_S5P64X0 | |||
9 | 9 | ||
10 | config CPU_S5P6440 | 10 | config CPU_S5P6440 |
11 | bool | 11 | bool |
12 | select S5P_HRT | ||
13 | select S5P_SLEEP if PM | 12 | select S5P_SLEEP if PM |
14 | select SAMSUNG_DMADEV | 13 | select SAMSUNG_DMADEV |
14 | select SAMSUNG_HRT | ||
15 | select SAMSUNG_WAKEMASK if PM | 15 | select SAMSUNG_WAKEMASK if PM |
16 | help | 16 | help |
17 | Enable S5P6440 CPU support | 17 | Enable S5P6440 CPU support |
18 | 18 | ||
19 | config CPU_S5P6450 | 19 | config CPU_S5P6450 |
20 | bool | 20 | bool |
21 | select S5P_HRT | 21 | select SAMSUNG_HRT |
22 | select S5P_SLEEP if PM | 22 | select S5P_SLEEP if PM |
23 | select SAMSUNG_DMADEV | 23 | select SAMSUNG_DMADEV |
24 | select SAMSUNG_WAKEMASK if PM | 24 | select SAMSUNG_WAKEMASK if PM |
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6440.c b/arch/arm/mach-s5p64x0/mach-smdk6440.c index e23723a5a214..73f71a698a34 100644 --- a/arch/arm/mach-s5p64x0/mach-smdk6440.c +++ b/arch/arm/mach-s5p64x0/mach-smdk6440.c | |||
@@ -48,7 +48,7 @@ | |||
48 | #include <plat/pll.h> | 48 | #include <plat/pll.h> |
49 | #include <plat/adc.h> | 49 | #include <plat/adc.h> |
50 | #include <linux/platform_data/touchscreen-s3c2410.h> | 50 | #include <linux/platform_data/touchscreen-s3c2410.h> |
51 | #include <plat/s5p-time.h> | 51 | #include <plat/samsung-time.h> |
52 | #include <plat/backlight.h> | 52 | #include <plat/backlight.h> |
53 | #include <plat/fb.h> | 53 | #include <plat/fb.h> |
54 | #include <plat/sdhci.h> | 54 | #include <plat/sdhci.h> |
@@ -229,7 +229,7 @@ static void __init smdk6440_map_io(void) | |||
229 | s5p64x0_init_io(NULL, 0); | 229 | s5p64x0_init_io(NULL, 0); |
230 | s3c24xx_init_clocks(12000000); | 230 | s3c24xx_init_clocks(12000000); |
231 | s3c24xx_init_uarts(smdk6440_uartcfgs, ARRAY_SIZE(smdk6440_uartcfgs)); | 231 | s3c24xx_init_uarts(smdk6440_uartcfgs, ARRAY_SIZE(smdk6440_uartcfgs)); |
232 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | 232 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
233 | } | 233 | } |
234 | 234 | ||
235 | static void s5p6440_set_lcd_interface(void) | 235 | static void s5p6440_set_lcd_interface(void) |
@@ -273,6 +273,6 @@ MACHINE_START(SMDK6440, "SMDK6440") | |||
273 | .init_irq = s5p6440_init_irq, | 273 | .init_irq = s5p6440_init_irq, |
274 | .map_io = smdk6440_map_io, | 274 | .map_io = smdk6440_map_io, |
275 | .init_machine = smdk6440_machine_init, | 275 | .init_machine = smdk6440_machine_init, |
276 | .init_time = s5p_timer_init, | 276 | .init_time = samsung_timer_init, |
277 | .restart = s5p64x0_restart, | 277 | .restart = s5p64x0_restart, |
278 | MACHINE_END | 278 | MACHINE_END |
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6450.c b/arch/arm/mach-s5p64x0/mach-smdk6450.c index ca10963a959e..18303e12019f 100644 --- a/arch/arm/mach-s5p64x0/mach-smdk6450.c +++ b/arch/arm/mach-s5p64x0/mach-smdk6450.c | |||
@@ -48,7 +48,7 @@ | |||
48 | #include <plat/pll.h> | 48 | #include <plat/pll.h> |
49 | #include <plat/adc.h> | 49 | #include <plat/adc.h> |
50 | #include <linux/platform_data/touchscreen-s3c2410.h> | 50 | #include <linux/platform_data/touchscreen-s3c2410.h> |
51 | #include <plat/s5p-time.h> | 51 | #include <plat/samsung-time.h> |
52 | #include <plat/backlight.h> | 52 | #include <plat/backlight.h> |
53 | #include <plat/fb.h> | 53 | #include <plat/fb.h> |
54 | #include <plat/sdhci.h> | 54 | #include <plat/sdhci.h> |
@@ -248,7 +248,7 @@ static void __init smdk6450_map_io(void) | |||
248 | s5p64x0_init_io(NULL, 0); | 248 | s5p64x0_init_io(NULL, 0); |
249 | s3c24xx_init_clocks(19200000); | 249 | s3c24xx_init_clocks(19200000); |
250 | s3c24xx_init_uarts(smdk6450_uartcfgs, ARRAY_SIZE(smdk6450_uartcfgs)); | 250 | s3c24xx_init_uarts(smdk6450_uartcfgs, ARRAY_SIZE(smdk6450_uartcfgs)); |
251 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | 251 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
252 | } | 252 | } |
253 | 253 | ||
254 | static void s5p6450_set_lcd_interface(void) | 254 | static void s5p6450_set_lcd_interface(void) |
@@ -292,6 +292,6 @@ MACHINE_START(SMDK6450, "SMDK6450") | |||
292 | .init_irq = s5p6450_init_irq, | 292 | .init_irq = s5p6450_init_irq, |
293 | .map_io = smdk6450_map_io, | 293 | .map_io = smdk6450_map_io, |
294 | .init_machine = smdk6450_machine_init, | 294 | .init_machine = smdk6450_machine_init, |
295 | .init_time = s5p_timer_init, | 295 | .init_time = samsung_timer_init, |
296 | .restart = s5p64x0_restart, | 296 | .restart = s5p64x0_restart, |
297 | MACHINE_END | 297 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index 92ad72f0ef98..0963283a7c5d 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig | |||
@@ -12,10 +12,10 @@ if ARCH_S5PV210 | |||
12 | config CPU_S5PV210 | 12 | config CPU_S5PV210 |
13 | bool | 13 | bool |
14 | select S5P_EXT_INT | 14 | select S5P_EXT_INT |
15 | select S5P_HRT | ||
16 | select S5P_PM if PM | 15 | select S5P_PM if PM |
17 | select S5P_SLEEP if PM | 16 | select S5P_SLEEP if PM |
18 | select SAMSUNG_DMADEV | 17 | select SAMSUNG_DMADEV |
18 | select SAMSUNG_HRT | ||
19 | help | 19 | help |
20 | Enable S5PV210 CPU support | 20 | Enable S5PV210 CPU support |
21 | 21 | ||
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index 11900a8e88a3..ed2b85485b9d 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <plat/fb.h> | 38 | #include <plat/fb.h> |
39 | #include <plat/fimc-core.h> | 39 | #include <plat/fimc-core.h> |
40 | #include <plat/sdhci.h> | 40 | #include <plat/sdhci.h> |
41 | #include <plat/s5p-time.h> | 41 | #include <plat/samsung-time.h> |
42 | 42 | ||
43 | #include "common.h" | 43 | #include "common.h" |
44 | 44 | ||
@@ -651,7 +651,7 @@ static void __init aquila_map_io(void) | |||
651 | s5pv210_init_io(NULL, 0); | 651 | s5pv210_init_io(NULL, 0); |
652 | s3c24xx_init_clocks(24000000); | 652 | s3c24xx_init_clocks(24000000); |
653 | s3c24xx_init_uarts(aquila_uartcfgs, ARRAY_SIZE(aquila_uartcfgs)); | 653 | s3c24xx_init_uarts(aquila_uartcfgs, ARRAY_SIZE(aquila_uartcfgs)); |
654 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | 654 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
655 | } | 655 | } |
656 | 656 | ||
657 | static void __init aquila_machine_init(void) | 657 | static void __init aquila_machine_init(void) |
@@ -686,6 +686,6 @@ MACHINE_START(AQUILA, "Aquila") | |||
686 | .init_irq = s5pv210_init_irq, | 686 | .init_irq = s5pv210_init_irq, |
687 | .map_io = aquila_map_io, | 687 | .map_io = aquila_map_io, |
688 | .init_machine = aquila_machine_init, | 688 | .init_machine = aquila_machine_init, |
689 | .init_time = s5p_timer_init, | 689 | .init_time = samsung_timer_init, |
690 | .restart = s5pv210_restart, | 690 | .restart = s5pv210_restart, |
691 | MACHINE_END | 691 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 3a38f7b34b94..256439448364 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #include <plat/keypad.h> | 47 | #include <plat/keypad.h> |
48 | #include <plat/sdhci.h> | 48 | #include <plat/sdhci.h> |
49 | #include <plat/clock.h> | 49 | #include <plat/clock.h> |
50 | #include <plat/s5p-time.h> | 50 | #include <plat/samsung-time.h> |
51 | #include <plat/mfc.h> | 51 | #include <plat/mfc.h> |
52 | #include <plat/camport.h> | 52 | #include <plat/camport.h> |
53 | 53 | ||
@@ -908,7 +908,7 @@ static void __init goni_map_io(void) | |||
908 | s5pv210_init_io(NULL, 0); | 908 | s5pv210_init_io(NULL, 0); |
909 | s3c24xx_init_clocks(clk_xusbxti.rate); | 909 | s3c24xx_init_clocks(clk_xusbxti.rate); |
910 | s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs)); | 910 | s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs)); |
911 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | 911 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
912 | } | 912 | } |
913 | 913 | ||
914 | static void __init goni_reserve(void) | 914 | static void __init goni_reserve(void) |
@@ -973,7 +973,7 @@ MACHINE_START(GONI, "GONI") | |||
973 | .init_irq = s5pv210_init_irq, | 973 | .init_irq = s5pv210_init_irq, |
974 | .map_io = goni_map_io, | 974 | .map_io = goni_map_io, |
975 | .init_machine = goni_machine_init, | 975 | .init_machine = goni_machine_init, |
976 | .init_time = s5p_timer_init, | 976 | .init_time = samsung_timer_init, |
977 | .reserve = &goni_reserve, | 977 | .reserve = &goni_reserve, |
978 | .restart = s5pv210_restart, | 978 | .restart = s5pv210_restart, |
979 | MACHINE_END | 979 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-smdkc110.c b/arch/arm/mach-s5pv210/mach-smdkc110.c index 28bd0248a3e2..7c0ed07a78a3 100644 --- a/arch/arm/mach-s5pv210/mach-smdkc110.c +++ b/arch/arm/mach-s5pv210/mach-smdkc110.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <linux/platform_data/ata-samsung_cf.h> | 29 | #include <linux/platform_data/ata-samsung_cf.h> |
30 | #include <linux/platform_data/i2c-s3c2410.h> | 30 | #include <linux/platform_data/i2c-s3c2410.h> |
31 | #include <plat/pm.h> | 31 | #include <plat/pm.h> |
32 | #include <plat/s5p-time.h> | 32 | #include <plat/samsung-time.h> |
33 | #include <plat/mfc.h> | 33 | #include <plat/mfc.h> |
34 | 34 | ||
35 | #include "common.h" | 35 | #include "common.h" |
@@ -120,7 +120,7 @@ static void __init smdkc110_map_io(void) | |||
120 | s5pv210_init_io(NULL, 0); | 120 | s5pv210_init_io(NULL, 0); |
121 | s3c24xx_init_clocks(24000000); | 121 | s3c24xx_init_clocks(24000000); |
122 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); | 122 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); |
123 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | 123 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
124 | } | 124 | } |
125 | 125 | ||
126 | static void __init smdkc110_reserve(void) | 126 | static void __init smdkc110_reserve(void) |
@@ -153,7 +153,7 @@ MACHINE_START(SMDKC110, "SMDKC110") | |||
153 | .init_irq = s5pv210_init_irq, | 153 | .init_irq = s5pv210_init_irq, |
154 | .map_io = smdkc110_map_io, | 154 | .map_io = smdkc110_map_io, |
155 | .init_machine = smdkc110_machine_init, | 155 | .init_machine = smdkc110_machine_init, |
156 | .init_time = s5p_timer_init, | 156 | .init_time = samsung_timer_init, |
157 | .restart = s5pv210_restart, | 157 | .restart = s5pv210_restart, |
158 | .reserve = &smdkc110_reserve, | 158 | .reserve = &smdkc110_reserve, |
159 | MACHINE_END | 159 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 3c73f36869bb..d50b6f124465 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #include <plat/keypad.h> | 44 | #include <plat/keypad.h> |
45 | #include <plat/pm.h> | 45 | #include <plat/pm.h> |
46 | #include <plat/fb.h> | 46 | #include <plat/fb.h> |
47 | #include <plat/s5p-time.h> | 47 | #include <plat/samsung-time.h> |
48 | #include <plat/backlight.h> | 48 | #include <plat/backlight.h> |
49 | #include <plat/mfc.h> | 49 | #include <plat/mfc.h> |
50 | #include <plat/clock.h> | 50 | #include <plat/clock.h> |
@@ -285,7 +285,7 @@ static void __init smdkv210_map_io(void) | |||
285 | s5pv210_init_io(NULL, 0); | 285 | s5pv210_init_io(NULL, 0); |
286 | s3c24xx_init_clocks(clk_xusbxti.rate); | 286 | s3c24xx_init_clocks(clk_xusbxti.rate); |
287 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); | 287 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); |
288 | s5p_set_timer_source(S5P_PWM2, S5P_PWM4); | 288 | samsung_set_timer_source(SAMSUNG_PWM2, SAMSUNG_PWM4); |
289 | } | 289 | } |
290 | 290 | ||
291 | static void __init smdkv210_reserve(void) | 291 | static void __init smdkv210_reserve(void) |
@@ -329,7 +329,7 @@ MACHINE_START(SMDKV210, "SMDKV210") | |||
329 | .init_irq = s5pv210_init_irq, | 329 | .init_irq = s5pv210_init_irq, |
330 | .map_io = smdkv210_map_io, | 330 | .map_io = smdkv210_map_io, |
331 | .init_machine = smdkv210_machine_init, | 331 | .init_machine = smdkv210_machine_init, |
332 | .init_time = s5p_timer_init, | 332 | .init_time = samsung_timer_init, |
333 | .restart = s5pv210_restart, | 333 | .restart = s5pv210_restart, |
334 | .reserve = &smdkv210_reserve, | 334 | .reserve = &smdkv210_reserve, |
335 | MACHINE_END | 335 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-torbreck.c b/arch/arm/mach-s5pv210/mach-torbreck.c index 2d4c5531819c..579afe89842a 100644 --- a/arch/arm/mach-s5pv210/mach-torbreck.c +++ b/arch/arm/mach-s5pv210/mach-torbreck.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <plat/devs.h> | 26 | #include <plat/devs.h> |
27 | #include <plat/cpu.h> | 27 | #include <plat/cpu.h> |
28 | #include <linux/platform_data/i2c-s3c2410.h> | 28 | #include <linux/platform_data/i2c-s3c2410.h> |
29 | #include <plat/s5p-time.h> | 29 | #include <plat/samsung-time.h> |
30 | 30 | ||
31 | #include "common.h" | 31 | #include "common.h" |
32 | 32 | ||
@@ -106,7 +106,7 @@ static void __init torbreck_map_io(void) | |||
106 | s5pv210_init_io(NULL, 0); | 106 | s5pv210_init_io(NULL, 0); |
107 | s3c24xx_init_clocks(24000000); | 107 | s3c24xx_init_clocks(24000000); |
108 | s3c24xx_init_uarts(torbreck_uartcfgs, ARRAY_SIZE(torbreck_uartcfgs)); | 108 | s3c24xx_init_uarts(torbreck_uartcfgs, ARRAY_SIZE(torbreck_uartcfgs)); |
109 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | 109 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
110 | } | 110 | } |
111 | 111 | ||
112 | static void __init torbreck_machine_init(void) | 112 | static void __init torbreck_machine_init(void) |
@@ -130,6 +130,6 @@ MACHINE_START(TORBRECK, "TORBRECK") | |||
130 | .init_irq = s5pv210_init_irq, | 130 | .init_irq = s5pv210_init_irq, |
131 | .map_io = torbreck_map_io, | 131 | .map_io = torbreck_map_io, |
132 | .init_machine = torbreck_machine_init, | 132 | .init_machine = torbreck_machine_init, |
133 | .init_time = s5p_timer_init, | 133 | .init_time = samsung_timer_init, |
134 | .restart = s5pv210_restart, | 134 | .restart = s5pv210_restart, |
135 | MACHINE_END | 135 | MACHINE_END |
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index a9d52167e16e..b708b3e56d27 100644 --- a/arch/arm/plat-samsung/Kconfig +++ b/arch/arm/plat-samsung/Kconfig | |||
@@ -70,7 +70,7 @@ config S3C_LOWLEVEL_UART_PORT | |||
70 | 70 | ||
71 | # timer options | 71 | # timer options |
72 | 72 | ||
73 | config S5P_HRT | 73 | config SAMSUNG_HRT |
74 | bool | 74 | bool |
75 | select SAMSUNG_DEV_PWM | 75 | select SAMSUNG_DEV_PWM |
76 | help | 76 | help |
diff --git a/arch/arm/plat-samsung/Makefile b/arch/arm/plat-samsung/Makefile index 3a7c64d1814a..e1244eb79333 100644 --- a/arch/arm/plat-samsung/Makefile +++ b/arch/arm/plat-samsung/Makefile | |||
@@ -13,7 +13,7 @@ obj- := | |||
13 | 13 | ||
14 | obj-y += init.o cpu.o | 14 | obj-y += init.o cpu.o |
15 | obj-$(CONFIG_ARCH_USES_GETTIMEOFFSET) += time.o | 15 | obj-$(CONFIG_ARCH_USES_GETTIMEOFFSET) += time.o |
16 | obj-$(CONFIG_S5P_HRT) += s5p-time.o | 16 | obj-$(CONFIG_SAMSUNG_HRT) += samsung-time.o |
17 | 17 | ||
18 | obj-$(CONFIG_SAMSUNG_CLOCK) += clock.o | 18 | obj-$(CONFIG_SAMSUNG_CLOCK) += clock.o |
19 | obj-$(CONFIG_SAMSUNG_CLOCK) += pwm-clock.o | 19 | obj-$(CONFIG_SAMSUNG_CLOCK) += pwm-clock.o |
diff --git a/arch/arm/plat-samsung/include/plat/s5p-time.h b/arch/arm/plat-samsung/include/plat/s5p-time.h deleted file mode 100644 index 9c96f3586ce0..000000000000 --- a/arch/arm/plat-samsung/include/plat/s5p-time.h +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /* linux/arch/arm/plat-samsung/include/plat/s5p-time.h | ||
2 | * | ||
3 | * Copyright 2011 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com/ | ||
5 | * | ||
6 | * Header file for s5p time support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __ASM_PLAT_S5P_TIME_H | ||
14 | #define __ASM_PLAT_S5P_TIME_H __FILE__ | ||
15 | |||
16 | /* S5P HR-Timer Clock mode */ | ||
17 | enum s5p_timer_mode { | ||
18 | S5P_PWM0, | ||
19 | S5P_PWM1, | ||
20 | S5P_PWM2, | ||
21 | S5P_PWM3, | ||
22 | S5P_PWM4, | ||
23 | }; | ||
24 | |||
25 | struct s5p_timer_source { | ||
26 | unsigned int event_id; | ||
27 | unsigned int source_id; | ||
28 | }; | ||
29 | |||
30 | /* Be able to sleep for atleast 4 seconds (usually more) */ | ||
31 | #define S5PTIMER_MIN_RANGE 4 | ||
32 | |||
33 | #define TCNT_MAX 0xffffffff | ||
34 | #define NON_PERIODIC 0 | ||
35 | #define PERIODIC 1 | ||
36 | |||
37 | extern void __init s5p_set_timer_source(enum s5p_timer_mode event, | ||
38 | enum s5p_timer_mode source); | ||
39 | extern void s5p_timer_init(void); | ||
40 | #endif /* __ASM_PLAT_S5P_TIME_H */ | ||
diff --git a/arch/arm/plat-samsung/include/plat/samsung-time.h b/arch/arm/plat-samsung/include/plat/samsung-time.h new file mode 100644 index 000000000000..c686f6a53c8d --- /dev/null +++ b/arch/arm/plat-samsung/include/plat/samsung-time.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* linux/arch/arm/plat-samsung/include/plat/samsung-time.h | ||
2 | * | ||
3 | * Copyright 2011 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com/ | ||
5 | * | ||
6 | * Header file for samsung s3c and s5p time support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __ASM_PLAT_SAMSUNG_TIME_H | ||
14 | #define __ASM_PLAT_SAMSUNG_TIME_H __FILE__ | ||
15 | |||
16 | /* SAMSUNG HR-Timer Clock mode */ | ||
17 | enum samsung_timer_mode { | ||
18 | SAMSUNG_PWM0, | ||
19 | SAMSUNG_PWM1, | ||
20 | SAMSUNG_PWM2, | ||
21 | SAMSUNG_PWM3, | ||
22 | SAMSUNG_PWM4, | ||
23 | }; | ||
24 | |||
25 | struct samsung_timer_source { | ||
26 | unsigned int event_id; | ||
27 | unsigned int source_id; | ||
28 | }; | ||
29 | |||
30 | /* Be able to sleep for atleast 4 seconds (usually more) */ | ||
31 | #define SAMSUNG_TIMER_MIN_RANGE 4 | ||
32 | |||
33 | #define TCNT_MAX 0xffffffff | ||
34 | #define NON_PERIODIC 0 | ||
35 | #define PERIODIC 1 | ||
36 | |||
37 | extern void __init samsung_set_timer_source(enum samsung_timer_mode event, | ||
38 | enum samsung_timer_mode source); | ||
39 | |||
40 | extern void __init samsung_timer_init(void); | ||
41 | |||
42 | #endif /* __ASM_PLAT_SAMSUNG_TIME_H */ | ||
diff --git a/arch/arm/plat-samsung/s5p-time.c b/arch/arm/plat-samsung/samsung-time.c index e92510cf82ee..aa8aa8014cc1 100644 --- a/arch/arm/plat-samsung/s5p-time.c +++ b/arch/arm/plat-samsung/samsung-time.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. | 2 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. |
3 | * http://www.samsung.com/ | 3 | * http://www.samsung.com/ |
4 | * | 4 | * |
5 | * S5P - Common hr-timer support | 5 | * SAMSUNG - Common hr-timer support |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License version 2 as | 8 | * it under the terms of the GNU General Public License version 2 as |
@@ -25,41 +25,41 @@ | |||
25 | #include <mach/map.h> | 25 | #include <mach/map.h> |
26 | #include <plat/devs.h> | 26 | #include <plat/devs.h> |
27 | #include <plat/regs-timer.h> | 27 | #include <plat/regs-timer.h> |
28 | #include <plat/s5p-time.h> | 28 | #include <plat/samsung-time.h> |
29 | 29 | ||
30 | static struct clk *tin_event; | 30 | static struct clk *tin_event; |
31 | static struct clk *tin_source; | 31 | static struct clk *tin_source; |
32 | static struct clk *tdiv_event; | 32 | static struct clk *tdiv_event; |
33 | static struct clk *tdiv_source; | 33 | static struct clk *tdiv_source; |
34 | static struct clk *timerclk; | 34 | static struct clk *timerclk; |
35 | static struct s5p_timer_source timer_source; | 35 | static struct samsung_timer_source timer_source; |
36 | static unsigned long clock_count_per_tick; | 36 | static unsigned long clock_count_per_tick; |
37 | static void s5p_timer_resume(void); | 37 | static void samsung_timer_resume(void); |
38 | 38 | ||
39 | static void s5p_time_stop(enum s5p_timer_mode mode) | 39 | static void samsung_time_stop(enum samsung_timer_mode mode) |
40 | { | 40 | { |
41 | unsigned long tcon; | 41 | unsigned long tcon; |
42 | 42 | ||
43 | tcon = __raw_readl(S3C2410_TCON); | 43 | tcon = __raw_readl(S3C2410_TCON); |
44 | 44 | ||
45 | switch (mode) { | 45 | switch (mode) { |
46 | case S5P_PWM0: | 46 | case SAMSUNG_PWM0: |
47 | tcon &= ~S3C2410_TCON_T0START; | 47 | tcon &= ~S3C2410_TCON_T0START; |
48 | break; | 48 | break; |
49 | 49 | ||
50 | case S5P_PWM1: | 50 | case SAMSUNG_PWM1: |
51 | tcon &= ~S3C2410_TCON_T1START; | 51 | tcon &= ~S3C2410_TCON_T1START; |
52 | break; | 52 | break; |
53 | 53 | ||
54 | case S5P_PWM2: | 54 | case SAMSUNG_PWM2: |
55 | tcon &= ~S3C2410_TCON_T2START; | 55 | tcon &= ~S3C2410_TCON_T2START; |
56 | break; | 56 | break; |
57 | 57 | ||
58 | case S5P_PWM3: | 58 | case SAMSUNG_PWM3: |
59 | tcon &= ~S3C2410_TCON_T3START; | 59 | tcon &= ~S3C2410_TCON_T3START; |
60 | break; | 60 | break; |
61 | 61 | ||
62 | case S5P_PWM4: | 62 | case SAMSUNG_PWM4: |
63 | tcon &= ~S3C2410_TCON_T4START; | 63 | tcon &= ~S3C2410_TCON_T4START; |
64 | break; | 64 | break; |
65 | 65 | ||
@@ -70,7 +70,7 @@ static void s5p_time_stop(enum s5p_timer_mode mode) | |||
70 | __raw_writel(tcon, S3C2410_TCON); | 70 | __raw_writel(tcon, S3C2410_TCON); |
71 | } | 71 | } |
72 | 72 | ||
73 | static void s5p_time_setup(enum s5p_timer_mode mode, unsigned long tcnt) | 73 | static void samsung_time_setup(enum samsung_timer_mode mode, unsigned long tcnt) |
74 | { | 74 | { |
75 | unsigned long tcon; | 75 | unsigned long tcon; |
76 | 76 | ||
@@ -79,27 +79,27 @@ static void s5p_time_setup(enum s5p_timer_mode mode, unsigned long tcnt) | |||
79 | tcnt--; | 79 | tcnt--; |
80 | 80 | ||
81 | switch (mode) { | 81 | switch (mode) { |
82 | case S5P_PWM0: | 82 | case SAMSUNG_PWM0: |
83 | tcon &= ~(0x0f << 0); | 83 | tcon &= ~(0x0f << 0); |
84 | tcon |= S3C2410_TCON_T0MANUALUPD; | 84 | tcon |= S3C2410_TCON_T0MANUALUPD; |
85 | break; | 85 | break; |
86 | 86 | ||
87 | case S5P_PWM1: | 87 | case SAMSUNG_PWM1: |
88 | tcon &= ~(0x0f << 8); | 88 | tcon &= ~(0x0f << 8); |
89 | tcon |= S3C2410_TCON_T1MANUALUPD; | 89 | tcon |= S3C2410_TCON_T1MANUALUPD; |
90 | break; | 90 | break; |
91 | 91 | ||
92 | case S5P_PWM2: | 92 | case SAMSUNG_PWM2: |
93 | tcon &= ~(0x0f << 12); | 93 | tcon &= ~(0x0f << 12); |
94 | tcon |= S3C2410_TCON_T2MANUALUPD; | 94 | tcon |= S3C2410_TCON_T2MANUALUPD; |
95 | break; | 95 | break; |
96 | 96 | ||
97 | case S5P_PWM3: | 97 | case SAMSUNG_PWM3: |
98 | tcon &= ~(0x0f << 16); | 98 | tcon &= ~(0x0f << 16); |
99 | tcon |= S3C2410_TCON_T3MANUALUPD; | 99 | tcon |= S3C2410_TCON_T3MANUALUPD; |
100 | break; | 100 | break; |
101 | 101 | ||
102 | case S5P_PWM4: | 102 | case SAMSUNG_PWM4: |
103 | tcon &= ~(0x07 << 20); | 103 | tcon &= ~(0x07 << 20); |
104 | tcon |= S3C2410_TCON_T4MANUALUPD; | 104 | tcon |= S3C2410_TCON_T4MANUALUPD; |
105 | break; | 105 | break; |
@@ -114,14 +114,14 @@ static void s5p_time_setup(enum s5p_timer_mode mode, unsigned long tcnt) | |||
114 | __raw_writel(tcon, S3C2410_TCON); | 114 | __raw_writel(tcon, S3C2410_TCON); |
115 | } | 115 | } |
116 | 116 | ||
117 | static void s5p_time_start(enum s5p_timer_mode mode, bool periodic) | 117 | static void samsung_time_start(enum samsung_timer_mode mode, bool periodic) |
118 | { | 118 | { |
119 | unsigned long tcon; | 119 | unsigned long tcon; |
120 | 120 | ||
121 | tcon = __raw_readl(S3C2410_TCON); | 121 | tcon = __raw_readl(S3C2410_TCON); |
122 | 122 | ||
123 | switch (mode) { | 123 | switch (mode) { |
124 | case S5P_PWM0: | 124 | case SAMSUNG_PWM0: |
125 | tcon |= S3C2410_TCON_T0START; | 125 | tcon |= S3C2410_TCON_T0START; |
126 | tcon &= ~S3C2410_TCON_T0MANUALUPD; | 126 | tcon &= ~S3C2410_TCON_T0MANUALUPD; |
127 | 127 | ||
@@ -131,7 +131,7 @@ static void s5p_time_start(enum s5p_timer_mode mode, bool periodic) | |||
131 | tcon &= ~S3C2410_TCON_T0RELOAD; | 131 | tcon &= ~S3C2410_TCON_T0RELOAD; |
132 | break; | 132 | break; |
133 | 133 | ||
134 | case S5P_PWM1: | 134 | case SAMSUNG_PWM1: |
135 | tcon |= S3C2410_TCON_T1START; | 135 | tcon |= S3C2410_TCON_T1START; |
136 | tcon &= ~S3C2410_TCON_T1MANUALUPD; | 136 | tcon &= ~S3C2410_TCON_T1MANUALUPD; |
137 | 137 | ||
@@ -141,7 +141,7 @@ static void s5p_time_start(enum s5p_timer_mode mode, bool periodic) | |||
141 | tcon &= ~S3C2410_TCON_T1RELOAD; | 141 | tcon &= ~S3C2410_TCON_T1RELOAD; |
142 | break; | 142 | break; |
143 | 143 | ||
144 | case S5P_PWM2: | 144 | case SAMSUNG_PWM2: |
145 | tcon |= S3C2410_TCON_T2START; | 145 | tcon |= S3C2410_TCON_T2START; |
146 | tcon &= ~S3C2410_TCON_T2MANUALUPD; | 146 | tcon &= ~S3C2410_TCON_T2MANUALUPD; |
147 | 147 | ||
@@ -151,7 +151,7 @@ static void s5p_time_start(enum s5p_timer_mode mode, bool periodic) | |||
151 | tcon &= ~S3C2410_TCON_T2RELOAD; | 151 | tcon &= ~S3C2410_TCON_T2RELOAD; |
152 | break; | 152 | break; |
153 | 153 | ||
154 | case S5P_PWM3: | 154 | case SAMSUNG_PWM3: |
155 | tcon |= S3C2410_TCON_T3START; | 155 | tcon |= S3C2410_TCON_T3START; |
156 | tcon &= ~S3C2410_TCON_T3MANUALUPD; | 156 | tcon &= ~S3C2410_TCON_T3MANUALUPD; |
157 | 157 | ||
@@ -161,7 +161,7 @@ static void s5p_time_start(enum s5p_timer_mode mode, bool periodic) | |||
161 | tcon &= ~S3C2410_TCON_T3RELOAD; | 161 | tcon &= ~S3C2410_TCON_T3RELOAD; |
162 | break; | 162 | break; |
163 | 163 | ||
164 | case S5P_PWM4: | 164 | case SAMSUNG_PWM4: |
165 | tcon |= S3C2410_TCON_T4START; | 165 | tcon |= S3C2410_TCON_T4START; |
166 | tcon &= ~S3C2410_TCON_T4MANUALUPD; | 166 | tcon &= ~S3C2410_TCON_T4MANUALUPD; |
167 | 167 | ||
@@ -178,24 +178,24 @@ static void s5p_time_start(enum s5p_timer_mode mode, bool periodic) | |||
178 | __raw_writel(tcon, S3C2410_TCON); | 178 | __raw_writel(tcon, S3C2410_TCON); |
179 | } | 179 | } |
180 | 180 | ||
181 | static int s5p_set_next_event(unsigned long cycles, | 181 | static int samsung_set_next_event(unsigned long cycles, |
182 | struct clock_event_device *evt) | 182 | struct clock_event_device *evt) |
183 | { | 183 | { |
184 | s5p_time_setup(timer_source.event_id, cycles); | 184 | samsung_time_setup(timer_source.event_id, cycles); |
185 | s5p_time_start(timer_source.event_id, NON_PERIODIC); | 185 | samsung_time_start(timer_source.event_id, NON_PERIODIC); |
186 | 186 | ||
187 | return 0; | 187 | return 0; |
188 | } | 188 | } |
189 | 189 | ||
190 | static void s5p_set_mode(enum clock_event_mode mode, | 190 | static void samsung_set_mode(enum clock_event_mode mode, |
191 | struct clock_event_device *evt) | 191 | struct clock_event_device *evt) |
192 | { | 192 | { |
193 | s5p_time_stop(timer_source.event_id); | 193 | samsung_time_stop(timer_source.event_id); |
194 | 194 | ||
195 | switch (mode) { | 195 | switch (mode) { |
196 | case CLOCK_EVT_MODE_PERIODIC: | 196 | case CLOCK_EVT_MODE_PERIODIC: |
197 | s5p_time_setup(timer_source.event_id, clock_count_per_tick); | 197 | samsung_time_setup(timer_source.event_id, clock_count_per_tick); |
198 | s5p_time_start(timer_source.event_id, PERIODIC); | 198 | samsung_time_start(timer_source.event_id, PERIODIC); |
199 | break; | 199 | break; |
200 | 200 | ||
201 | case CLOCK_EVT_MODE_ONESHOT: | 201 | case CLOCK_EVT_MODE_ONESHOT: |
@@ -206,24 +206,24 @@ static void s5p_set_mode(enum clock_event_mode mode, | |||
206 | break; | 206 | break; |
207 | 207 | ||
208 | case CLOCK_EVT_MODE_RESUME: | 208 | case CLOCK_EVT_MODE_RESUME: |
209 | s5p_timer_resume(); | 209 | samsung_timer_resume(); |
210 | break; | 210 | break; |
211 | } | 211 | } |
212 | } | 212 | } |
213 | 213 | ||
214 | static void s5p_timer_resume(void) | 214 | static void samsung_timer_resume(void) |
215 | { | 215 | { |
216 | /* event timer restart */ | 216 | /* event timer restart */ |
217 | s5p_time_setup(timer_source.event_id, clock_count_per_tick); | 217 | samsung_time_setup(timer_source.event_id, clock_count_per_tick); |
218 | s5p_time_start(timer_source.event_id, PERIODIC); | 218 | samsung_time_start(timer_source.event_id, PERIODIC); |
219 | 219 | ||
220 | /* source timer restart */ | 220 | /* source timer restart */ |
221 | s5p_time_setup(timer_source.source_id, TCNT_MAX); | 221 | samsung_time_setup(timer_source.source_id, TCNT_MAX); |
222 | s5p_time_start(timer_source.source_id, PERIODIC); | 222 | samsung_time_start(timer_source.source_id, PERIODIC); |
223 | } | 223 | } |
224 | 224 | ||
225 | void __init s5p_set_timer_source(enum s5p_timer_mode event, | 225 | void __init samsung_set_timer_source(enum samsung_timer_mode event, |
226 | enum s5p_timer_mode source) | 226 | enum samsung_timer_mode source) |
227 | { | 227 | { |
228 | s3c_device_timer[event].dev.bus = &platform_bus_type; | 228 | s3c_device_timer[event].dev.bus = &platform_bus_type; |
229 | s3c_device_timer[source].dev.bus = &platform_bus_type; | 229 | s3c_device_timer[source].dev.bus = &platform_bus_type; |
@@ -233,14 +233,14 @@ void __init s5p_set_timer_source(enum s5p_timer_mode event, | |||
233 | } | 233 | } |
234 | 234 | ||
235 | static struct clock_event_device time_event_device = { | 235 | static struct clock_event_device time_event_device = { |
236 | .name = "s5p_event_timer", | 236 | .name = "samsung_event_timer", |
237 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, | 237 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, |
238 | .rating = 200, | 238 | .rating = 200, |
239 | .set_next_event = s5p_set_next_event, | 239 | .set_next_event = samsung_set_next_event, |
240 | .set_mode = s5p_set_mode, | 240 | .set_mode = samsung_set_mode, |
241 | }; | 241 | }; |
242 | 242 | ||
243 | static irqreturn_t s5p_clock_event_isr(int irq, void *dev_id) | 243 | static irqreturn_t samsung_clock_event_isr(int irq, void *dev_id) |
244 | { | 244 | { |
245 | struct clock_event_device *evt = dev_id; | 245 | struct clock_event_device *evt = dev_id; |
246 | 246 | ||
@@ -249,14 +249,14 @@ static irqreturn_t s5p_clock_event_isr(int irq, void *dev_id) | |||
249 | return IRQ_HANDLED; | 249 | return IRQ_HANDLED; |
250 | } | 250 | } |
251 | 251 | ||
252 | static struct irqaction s5p_clock_event_irq = { | 252 | static struct irqaction samsung_clock_event_irq = { |
253 | .name = "s5p_time_irq", | 253 | .name = "samsung_time_irq", |
254 | .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL, | 254 | .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL, |
255 | .handler = s5p_clock_event_isr, | 255 | .handler = samsung_clock_event_isr, |
256 | .dev_id = &time_event_device, | 256 | .dev_id = &time_event_device, |
257 | }; | 257 | }; |
258 | 258 | ||
259 | static void __init s5p_clockevent_init(void) | 259 | static void __init samsung_clockevent_init(void) |
260 | { | 260 | { |
261 | unsigned long pclk; | 261 | unsigned long pclk; |
262 | unsigned long clock_rate; | 262 | unsigned long clock_rate; |
@@ -278,22 +278,22 @@ static void __init s5p_clockevent_init(void) | |||
278 | clockevents_config_and_register(&time_event_device, clock_rate, 1, -1); | 278 | clockevents_config_and_register(&time_event_device, clock_rate, 1, -1); |
279 | 279 | ||
280 | irq_number = timer_source.event_id + IRQ_TIMER0; | 280 | irq_number = timer_source.event_id + IRQ_TIMER0; |
281 | setup_irq(irq_number, &s5p_clock_event_irq); | 281 | setup_irq(irq_number, &samsung_clock_event_irq); |
282 | } | 282 | } |
283 | 283 | ||
284 | static void __iomem *s5p_timer_reg(void) | 284 | static void __iomem *samsung_timer_reg(void) |
285 | { | 285 | { |
286 | unsigned long offset = 0; | 286 | unsigned long offset = 0; |
287 | 287 | ||
288 | switch (timer_source.source_id) { | 288 | switch (timer_source.source_id) { |
289 | case S5P_PWM0: | 289 | case SAMSUNG_PWM0: |
290 | case S5P_PWM1: | 290 | case SAMSUNG_PWM1: |
291 | case S5P_PWM2: | 291 | case SAMSUNG_PWM2: |
292 | case S5P_PWM3: | 292 | case SAMSUNG_PWM3: |
293 | offset = (timer_source.source_id * 0x0c) + 0x14; | 293 | offset = (timer_source.source_id * 0x0c) + 0x14; |
294 | break; | 294 | break; |
295 | 295 | ||
296 | case S5P_PWM4: | 296 | case SAMSUNG_PWM4: |
297 | offset = 0x40; | 297 | offset = 0x40; |
298 | break; | 298 | break; |
299 | 299 | ||
@@ -312,9 +312,9 @@ static void __iomem *s5p_timer_reg(void) | |||
312 | * this wraps around for now, since it is just a relative time | 312 | * this wraps around for now, since it is just a relative time |
313 | * stamp. (Inspired by U300 implementation.) | 313 | * stamp. (Inspired by U300 implementation.) |
314 | */ | 314 | */ |
315 | static u32 notrace s5p_read_sched_clock(void) | 315 | static u32 notrace samsung_read_sched_clock(void) |
316 | { | 316 | { |
317 | void __iomem *reg = s5p_timer_reg(); | 317 | void __iomem *reg = samsung_timer_reg(); |
318 | 318 | ||
319 | if (!reg) | 319 | if (!reg) |
320 | return 0; | 320 | return 0; |
@@ -322,7 +322,7 @@ static u32 notrace s5p_read_sched_clock(void) | |||
322 | return ~__raw_readl(reg); | 322 | return ~__raw_readl(reg); |
323 | } | 323 | } |
324 | 324 | ||
325 | static void __init s5p_clocksource_init(void) | 325 | static void __init samsung_clocksource_init(void) |
326 | { | 326 | { |
327 | unsigned long pclk; | 327 | unsigned long pclk; |
328 | unsigned long clock_rate; | 328 | unsigned long clock_rate; |
@@ -334,17 +334,17 @@ static void __init s5p_clocksource_init(void) | |||
334 | 334 | ||
335 | clock_rate = clk_get_rate(tin_source); | 335 | clock_rate = clk_get_rate(tin_source); |
336 | 336 | ||
337 | s5p_time_setup(timer_source.source_id, TCNT_MAX); | 337 | samsung_time_setup(timer_source.source_id, TCNT_MAX); |
338 | s5p_time_start(timer_source.source_id, PERIODIC); | 338 | samsung_time_start(timer_source.source_id, PERIODIC); |
339 | 339 | ||
340 | setup_sched_clock(s5p_read_sched_clock, 32, clock_rate); | 340 | setup_sched_clock(samsung_read_sched_clock, 32, clock_rate); |
341 | 341 | ||
342 | if (clocksource_mmio_init(s5p_timer_reg(), "s5p_clocksource_timer", | 342 | if (clocksource_mmio_init(samsung_timer_reg(), "samsung_clocksource_timer", |
343 | clock_rate, 250, 32, clocksource_mmio_readl_down)) | 343 | clock_rate, 250, 32, clocksource_mmio_readl_down)) |
344 | panic("s5p_clocksource_timer: can't register clocksource\n"); | 344 | panic("samsung_clocksource_timer: can't register clocksource\n"); |
345 | } | 345 | } |
346 | 346 | ||
347 | static void __init s5p_timer_resources(void) | 347 | static void __init samsung_timer_resources(void) |
348 | { | 348 | { |
349 | 349 | ||
350 | unsigned long event_id = timer_source.event_id; | 350 | unsigned long event_id = timer_source.event_id; |
@@ -386,9 +386,9 @@ static void __init s5p_timer_resources(void) | |||
386 | clk_enable(tin_source); | 386 | clk_enable(tin_source); |
387 | } | 387 | } |
388 | 388 | ||
389 | void __init s5p_timer_init(void) | 389 | void __init samsung_timer_init(void) |
390 | { | 390 | { |
391 | s5p_timer_resources(); | 391 | samsung_timer_resources(); |
392 | s5p_clockevent_init(); | 392 | samsung_clockevent_init(); |
393 | s5p_clocksource_init(); | 393 | samsung_clocksource_init(); |
394 | } | 394 | } |