diff options
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/common.c | 17 | ||||
-rw-r--r-- | arch/arm/mach-exynos/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/include/mach/regs-irq.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-armlex4210.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-exynos4-dt.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-exynos5-dt.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-nuri.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-origen.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-smdk4x12.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-smdkv310.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-universal_c210.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mct.c | 25 | ||||
-rw-r--r-- | arch/arm/mach-exynos/platsmp.c | 6 |
14 files changed, 34 insertions, 58 deletions
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 91d5b6f1d5af..e103c290bc9e 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig | |||
@@ -74,6 +74,8 @@ config SOC_EXYNOS5440 | |||
74 | depends on ARCH_EXYNOS5 | 74 | depends on ARCH_EXYNOS5 |
75 | select ARM_ARCH_TIMER | 75 | select ARM_ARCH_TIMER |
76 | select AUTO_ZRELADDR | 76 | select AUTO_ZRELADDR |
77 | select PINCTRL | ||
78 | select PINCTRL_EXYNOS5440 | ||
77 | help | 79 | help |
78 | Enable EXYNOS5440 SoC support | 80 | Enable EXYNOS5440 SoC support |
79 | 81 | ||
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index bec1c922d1a9..9ce3e54a77c4 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c | |||
@@ -22,12 +22,13 @@ | |||
22 | #include <linux/of_irq.h> | 22 | #include <linux/of_irq.h> |
23 | #include <linux/export.h> | 23 | #include <linux/export.h> |
24 | #include <linux/irqdomain.h> | 24 | #include <linux/irqdomain.h> |
25 | #include <linux/irqchip.h> | ||
25 | #include <linux/of_address.h> | 26 | #include <linux/of_address.h> |
27 | #include <linux/irqchip/arm-gic.h> | ||
26 | 28 | ||
27 | #include <asm/proc-fns.h> | 29 | #include <asm/proc-fns.h> |
28 | #include <asm/exception.h> | 30 | #include <asm/exception.h> |
29 | #include <asm/hardware/cache-l2x0.h> | 31 | #include <asm/hardware/cache-l2x0.h> |
30 | #include <asm/hardware/gic.h> | ||
31 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
32 | #include <asm/mach/irq.h> | 33 | #include <asm/mach/irq.h> |
33 | #include <asm/cacheflush.h> | 34 | #include <asm/cacheflush.h> |
@@ -423,11 +424,18 @@ static void __init exynos5_init_clocks(int xtal) | |||
423 | { | 424 | { |
424 | printk(KERN_DEBUG "%s: initializing clocks\n", __func__); | 425 | printk(KERN_DEBUG "%s: initializing clocks\n", __func__); |
425 | 426 | ||
427 | /* EXYNOS5440 can support only common clock framework */ | ||
428 | |||
429 | if (soc_is_exynos5440()) | ||
430 | return; | ||
431 | |||
432 | #ifdef CONFIG_SOC_EXYNOS5250 | ||
426 | s3c24xx_register_baseclocks(xtal); | 433 | s3c24xx_register_baseclocks(xtal); |
427 | s5p_register_clocks(xtal); | 434 | s5p_register_clocks(xtal); |
428 | 435 | ||
429 | exynos5_register_clocks(); | 436 | exynos5_register_clocks(); |
430 | exynos5_setup_clocks(); | 437 | exynos5_setup_clocks(); |
438 | #endif | ||
431 | } | 439 | } |
432 | 440 | ||
433 | #define COMBINER_ENABLE_SET 0x0 | 441 | #define COMBINER_ENABLE_SET 0x0 |
@@ -636,8 +644,6 @@ static int __init combiner_of_init(struct device_node *np, | |||
636 | } | 644 | } |
637 | 645 | ||
638 | static const struct of_device_id exynos_dt_irq_match[] = { | 646 | static const struct of_device_id exynos_dt_irq_match[] = { |
639 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, | ||
640 | { .compatible = "arm,cortex-a15-gic", .data = gic_of_init, }, | ||
641 | { .compatible = "samsung,exynos4210-combiner", | 647 | { .compatible = "samsung,exynos4210-combiner", |
642 | .data = combiner_of_init, }, | 648 | .data = combiner_of_init, }, |
643 | {}, | 649 | {}, |
@@ -653,8 +659,10 @@ void __init exynos4_init_irq(void) | |||
653 | if (!of_have_populated_dt()) | 659 | if (!of_have_populated_dt()) |
654 | gic_init_bases(0, IRQ_PPI(0), S5P_VA_GIC_DIST, S5P_VA_GIC_CPU, gic_bank_offset, NULL); | 660 | gic_init_bases(0, IRQ_PPI(0), S5P_VA_GIC_DIST, S5P_VA_GIC_CPU, gic_bank_offset, NULL); |
655 | #ifdef CONFIG_OF | 661 | #ifdef CONFIG_OF |
656 | else | 662 | else { |
663 | irqchip_init(); | ||
657 | of_irq_init(exynos_dt_irq_match); | 664 | of_irq_init(exynos_dt_irq_match); |
665 | } | ||
658 | #endif | 666 | #endif |
659 | 667 | ||
660 | if (!of_have_populated_dt()) | 668 | if (!of_have_populated_dt()) |
@@ -671,6 +679,7 @@ void __init exynos4_init_irq(void) | |||
671 | void __init exynos5_init_irq(void) | 679 | void __init exynos5_init_irq(void) |
672 | { | 680 | { |
673 | #ifdef CONFIG_OF | 681 | #ifdef CONFIG_OF |
682 | irqchip_init(); | ||
674 | of_irq_init(exynos_dt_irq_match); | 683 | of_irq_init(exynos_dt_irq_match); |
675 | #endif | 684 | #endif |
676 | /* | 685 | /* |
diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index e1af3a9b72a7..feefc86293c2 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H | 12 | #ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H |
13 | #define __ARCH_ARM_MACH_EXYNOS_COMMON_H | 13 | #define __ARCH_ARM_MACH_EXYNOS_COMMON_H |
14 | 14 | ||
15 | extern struct sys_timer exynos4_timer; | 15 | extern void exynos4_timer_init(void); |
16 | 16 | ||
17 | struct map_desc; | 17 | struct map_desc; |
18 | void exynos_init_io(struct map_desc *mach_desc, int size); | 18 | void exynos_init_io(struct map_desc *mach_desc, int size); |
diff --git a/arch/arm/mach-exynos/include/mach/regs-irq.h b/arch/arm/mach-exynos/include/mach/regs-irq.h index 9c7b4bfd546f..f2b50506b9f6 100644 --- a/arch/arm/mach-exynos/include/mach/regs-irq.h +++ b/arch/arm/mach-exynos/include/mach/regs-irq.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #ifndef __ASM_ARCH_REGS_IRQ_H | 13 | #ifndef __ASM_ARCH_REGS_IRQ_H |
14 | #define __ASM_ARCH_REGS_IRQ_H __FILE__ | 14 | #define __ASM_ARCH_REGS_IRQ_H __FILE__ |
15 | 15 | ||
16 | #include <asm/hardware/gic.h> | 16 | #include <linux/irqchip/arm-gic.h> |
17 | #include <mach/map.h> | 17 | #include <mach/map.h> |
18 | 18 | ||
19 | #endif /* __ASM_ARCH_REGS_IRQ_H */ | 19 | #endif /* __ASM_ARCH_REGS_IRQ_H */ |
diff --git a/arch/arm/mach-exynos/mach-armlex4210.c b/arch/arm/mach-exynos/mach-armlex4210.c index b938f9fc1dd1..685f29173afa 100644 --- a/arch/arm/mach-exynos/mach-armlex4210.c +++ b/arch/arm/mach-exynos/mach-armlex4210.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/smsc911x.h> | 16 | #include <linux/smsc911x.h> |
17 | 17 | ||
18 | #include <asm/mach/arch.h> | 18 | #include <asm/mach/arch.h> |
19 | #include <asm/hardware/gic.h> | ||
20 | #include <asm/mach-types.h> | 19 | #include <asm/mach-types.h> |
21 | 20 | ||
22 | #include <plat/cpu.h> | 21 | #include <plat/cpu.h> |
@@ -201,9 +200,8 @@ MACHINE_START(ARMLEX4210, "ARMLEX4210") | |||
201 | .smp = smp_ops(exynos_smp_ops), | 200 | .smp = smp_ops(exynos_smp_ops), |
202 | .init_irq = exynos4_init_irq, | 201 | .init_irq = exynos4_init_irq, |
203 | .map_io = armlex4210_map_io, | 202 | .map_io = armlex4210_map_io, |
204 | .handle_irq = gic_handle_irq, | ||
205 | .init_machine = armlex4210_machine_init, | 203 | .init_machine = armlex4210_machine_init, |
206 | .init_late = exynos_init_late, | 204 | .init_late = exynos_init_late, |
207 | .timer = &exynos4_timer, | 205 | .init_time = exynos4_timer_init, |
208 | .restart = exynos4_restart, | 206 | .restart = exynos4_restart, |
209 | MACHINE_END | 207 | MACHINE_END |
diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c index 92757ff817ae..112d10e53d20 100644 --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/serial_core.h> | 15 | #include <linux/serial_core.h> |
16 | 16 | ||
17 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
18 | #include <asm/hardware/gic.h> | ||
19 | #include <mach/map.h> | 18 | #include <mach/map.h> |
20 | 19 | ||
21 | #include <plat/cpu.h> | 20 | #include <plat/cpu.h> |
@@ -107,10 +106,9 @@ DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") | |||
107 | .smp = smp_ops(exynos_smp_ops), | 106 | .smp = smp_ops(exynos_smp_ops), |
108 | .init_irq = exynos4_init_irq, | 107 | .init_irq = exynos4_init_irq, |
109 | .map_io = exynos4_dt_map_io, | 108 | .map_io = exynos4_dt_map_io, |
110 | .handle_irq = gic_handle_irq, | ||
111 | .init_machine = exynos4_dt_machine_init, | 109 | .init_machine = exynos4_dt_machine_init, |
112 | .init_late = exynos_init_late, | 110 | .init_late = exynos_init_late, |
113 | .timer = &exynos4_timer, | 111 | .init_time = exynos4_timer_init, |
114 | .dt_compat = exynos4_dt_compat, | 112 | .dt_compat = exynos4_dt_compat, |
115 | .restart = exynos4_restart, | 113 | .restart = exynos4_restart, |
116 | MACHINE_END | 114 | MACHINE_END |
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index e99d3d8f2bcf..0deeecffa3ae 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | 17 | ||
18 | #include <asm/mach/arch.h> | 18 | #include <asm/mach/arch.h> |
19 | #include <asm/hardware/gic.h> | ||
20 | #include <mach/map.h> | 19 | #include <mach/map.h> |
21 | #include <mach/regs-pmu.h> | 20 | #include <mach/regs-pmu.h> |
22 | 21 | ||
@@ -179,10 +178,9 @@ DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)") | |||
179 | .init_irq = exynos5_init_irq, | 178 | .init_irq = exynos5_init_irq, |
180 | .smp = smp_ops(exynos_smp_ops), | 179 | .smp = smp_ops(exynos_smp_ops), |
181 | .map_io = exynos5_dt_map_io, | 180 | .map_io = exynos5_dt_map_io, |
182 | .handle_irq = gic_handle_irq, | ||
183 | .init_machine = exynos5_dt_machine_init, | 181 | .init_machine = exynos5_dt_machine_init, |
184 | .init_late = exynos_init_late, | 182 | .init_late = exynos_init_late, |
185 | .timer = &exynos4_timer, | 183 | .init_time = exynos4_timer_init, |
186 | .dt_compat = exynos5_dt_compat, | 184 | .dt_compat = exynos5_dt_compat, |
187 | .restart = exynos5_restart, | 185 | .restart = exynos5_restart, |
188 | .reserve = exynos5_reserve, | 186 | .reserve = exynos5_reserve, |
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index 27d4ed8b116e..b8b3fbf0bae7 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <media/v4l2-mediabus.h> | 39 | #include <media/v4l2-mediabus.h> |
40 | 40 | ||
41 | #include <asm/mach/arch.h> | 41 | #include <asm/mach/arch.h> |
42 | #include <asm/hardware/gic.h> | ||
43 | #include <asm/mach-types.h> | 42 | #include <asm/mach-types.h> |
44 | 43 | ||
45 | #include <plat/adc.h> | 44 | #include <plat/adc.h> |
@@ -1379,10 +1378,9 @@ MACHINE_START(NURI, "NURI") | |||
1379 | .smp = smp_ops(exynos_smp_ops), | 1378 | .smp = smp_ops(exynos_smp_ops), |
1380 | .init_irq = exynos4_init_irq, | 1379 | .init_irq = exynos4_init_irq, |
1381 | .map_io = nuri_map_io, | 1380 | .map_io = nuri_map_io, |
1382 | .handle_irq = gic_handle_irq, | ||
1383 | .init_machine = nuri_machine_init, | 1381 | .init_machine = nuri_machine_init, |
1384 | .init_late = exynos_init_late, | 1382 | .init_late = exynos_init_late, |
1385 | .timer = &exynos4_timer, | 1383 | .init_time = exynos4_timer_init, |
1386 | .reserve = &nuri_reserve, | 1384 | .reserve = &nuri_reserve, |
1387 | .restart = exynos4_restart, | 1385 | .restart = exynos4_restart, |
1388 | MACHINE_END | 1386 | MACHINE_END |
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 5e34b9c16196..579d2d171daa 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/platform_data/usb-exynos.h> | 29 | #include <linux/platform_data/usb-exynos.h> |
30 | 30 | ||
31 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
32 | #include <asm/hardware/gic.h> | ||
33 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
34 | 33 | ||
35 | #include <video/platform_lcd.h> | 34 | #include <video/platform_lcd.h> |
@@ -814,10 +813,9 @@ MACHINE_START(ORIGEN, "ORIGEN") | |||
814 | .smp = smp_ops(exynos_smp_ops), | 813 | .smp = smp_ops(exynos_smp_ops), |
815 | .init_irq = exynos4_init_irq, | 814 | .init_irq = exynos4_init_irq, |
816 | .map_io = origen_map_io, | 815 | .map_io = origen_map_io, |
817 | .handle_irq = gic_handle_irq, | ||
818 | .init_machine = origen_machine_init, | 816 | .init_machine = origen_machine_init, |
819 | .init_late = exynos_init_late, | 817 | .init_late = exynos_init_late, |
820 | .timer = &exynos4_timer, | 818 | .init_time = exynos4_timer_init, |
821 | .reserve = &origen_reserve, | 819 | .reserve = &origen_reserve, |
822 | .restart = exynos4_restart, | 820 | .restart = exynos4_restart, |
823 | MACHINE_END | 821 | MACHINE_END |
diff --git a/arch/arm/mach-exynos/mach-smdk4x12.c b/arch/arm/mach-exynos/mach-smdk4x12.c index ae6da40c2aa9..fe6149624b84 100644 --- a/arch/arm/mach-exynos/mach-smdk4x12.c +++ b/arch/arm/mach-exynos/mach-smdk4x12.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/platform_data/s3c-hsotg.h> | 25 | #include <linux/platform_data/s3c-hsotg.h> |
26 | 26 | ||
27 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
28 | #include <asm/hardware/gic.h> | ||
29 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
30 | 29 | ||
31 | #include <video/samsung_fimd.h> | 30 | #include <video/samsung_fimd.h> |
@@ -376,9 +375,8 @@ MACHINE_START(SMDK4212, "SMDK4212") | |||
376 | .smp = smp_ops(exynos_smp_ops), | 375 | .smp = smp_ops(exynos_smp_ops), |
377 | .init_irq = exynos4_init_irq, | 376 | .init_irq = exynos4_init_irq, |
378 | .map_io = smdk4x12_map_io, | 377 | .map_io = smdk4x12_map_io, |
379 | .handle_irq = gic_handle_irq, | ||
380 | .init_machine = smdk4x12_machine_init, | 378 | .init_machine = smdk4x12_machine_init, |
381 | .timer = &exynos4_timer, | 379 | .init_time = exynos4_timer_init, |
382 | .restart = exynos4_restart, | 380 | .restart = exynos4_restart, |
383 | .reserve = &smdk4x12_reserve, | 381 | .reserve = &smdk4x12_reserve, |
384 | MACHINE_END | 382 | MACHINE_END |
@@ -390,10 +388,9 @@ MACHINE_START(SMDK4412, "SMDK4412") | |||
390 | .smp = smp_ops(exynos_smp_ops), | 388 | .smp = smp_ops(exynos_smp_ops), |
391 | .init_irq = exynos4_init_irq, | 389 | .init_irq = exynos4_init_irq, |
392 | .map_io = smdk4x12_map_io, | 390 | .map_io = smdk4x12_map_io, |
393 | .handle_irq = gic_handle_irq, | ||
394 | .init_machine = smdk4x12_machine_init, | 391 | .init_machine = smdk4x12_machine_init, |
395 | .init_late = exynos_init_late, | 392 | .init_late = exynos_init_late, |
396 | .timer = &exynos4_timer, | 393 | .init_time = exynos4_timer_init, |
397 | .restart = exynos4_restart, | 394 | .restart = exynos4_restart, |
398 | .reserve = &smdk4x12_reserve, | 395 | .reserve = &smdk4x12_reserve, |
399 | MACHINE_END | 396 | MACHINE_END |
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c index 35548e3c097d..d71672922b19 100644 --- a/arch/arm/mach-exynos/mach-smdkv310.c +++ b/arch/arm/mach-exynos/mach-smdkv310.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/platform_data/usb-exynos.h> | 26 | #include <linux/platform_data/usb-exynos.h> |
27 | 27 | ||
28 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
29 | #include <asm/hardware/gic.h> | ||
30 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
31 | 30 | ||
32 | #include <video/platform_lcd.h> | 31 | #include <video/platform_lcd.h> |
@@ -423,9 +422,8 @@ MACHINE_START(SMDKV310, "SMDKV310") | |||
423 | .smp = smp_ops(exynos_smp_ops), | 422 | .smp = smp_ops(exynos_smp_ops), |
424 | .init_irq = exynos4_init_irq, | 423 | .init_irq = exynos4_init_irq, |
425 | .map_io = smdkv310_map_io, | 424 | .map_io = smdkv310_map_io, |
426 | .handle_irq = gic_handle_irq, | ||
427 | .init_machine = smdkv310_machine_init, | 425 | .init_machine = smdkv310_machine_init, |
428 | .timer = &exynos4_timer, | 426 | .init_time = exynos4_timer_init, |
429 | .reserve = &smdkv310_reserve, | 427 | .reserve = &smdkv310_reserve, |
430 | .restart = exynos4_restart, | 428 | .restart = exynos4_restart, |
431 | MACHINE_END | 429 | MACHINE_END |
@@ -436,10 +434,9 @@ MACHINE_START(SMDKC210, "SMDKC210") | |||
436 | .smp = smp_ops(exynos_smp_ops), | 434 | .smp = smp_ops(exynos_smp_ops), |
437 | .init_irq = exynos4_init_irq, | 435 | .init_irq = exynos4_init_irq, |
438 | .map_io = smdkv310_map_io, | 436 | .map_io = smdkv310_map_io, |
439 | .handle_irq = gic_handle_irq, | ||
440 | .init_machine = smdkv310_machine_init, | 437 | .init_machine = smdkv310_machine_init, |
441 | .init_late = exynos_init_late, | 438 | .init_late = exynos_init_late, |
442 | .timer = &exynos4_timer, | 439 | .init_time = exynos4_timer_init, |
443 | .reserve = &smdkv310_reserve, | 440 | .reserve = &smdkv310_reserve, |
444 | .restart = exynos4_restart, | 441 | .restart = exynos4_restart, |
445 | MACHINE_END | 442 | MACHINE_END |
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index 9e3340f18950..c9d33a43103e 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <drm/exynos_drm.h> | 29 | #include <drm/exynos_drm.h> |
30 | 30 | ||
31 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
32 | #include <asm/hardware/gic.h> | ||
33 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
34 | 33 | ||
35 | #include <video/samsung_fimd.h> | 34 | #include <video/samsung_fimd.h> |
@@ -1151,10 +1150,9 @@ MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210") | |||
1151 | .smp = smp_ops(exynos_smp_ops), | 1150 | .smp = smp_ops(exynos_smp_ops), |
1152 | .init_irq = exynos4_init_irq, | 1151 | .init_irq = exynos4_init_irq, |
1153 | .map_io = universal_map_io, | 1152 | .map_io = universal_map_io, |
1154 | .handle_irq = gic_handle_irq, | ||
1155 | .init_machine = universal_machine_init, | 1153 | .init_machine = universal_machine_init, |
1156 | .init_late = exynos_init_late, | 1154 | .init_late = exynos_init_late, |
1157 | .timer = &s5p_timer, | 1155 | .init_time = s5p_timer_init, |
1158 | .reserve = &universal_reserve, | 1156 | .reserve = &universal_reserve, |
1159 | .restart = exynos4_restart, | 1157 | .restart = exynos4_restart, |
1160 | MACHINE_END | 1158 | MACHINE_END |
diff --git a/arch/arm/mach-exynos/mct.c b/arch/arm/mach-exynos/mct.c index 57668eb68e75..c9d6650f9b5d 100644 --- a/arch/arm/mach-exynos/mct.c +++ b/arch/arm/mach-exynos/mct.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/of.h> | 22 | #include <linux/of.h> |
23 | 23 | ||
24 | #include <asm/arch_timer.h> | 24 | #include <asm/arch_timer.h> |
25 | #include <asm/hardware/gic.h> | ||
26 | #include <asm/localtimer.h> | 25 | #include <asm/localtimer.h> |
27 | 26 | ||
28 | #include <plat/cpu.h> | 27 | #include <plat/cpu.h> |
@@ -255,13 +254,9 @@ static struct irqaction mct_comp_event_irq = { | |||
255 | 254 | ||
256 | static void exynos4_clockevent_init(void) | 255 | static void exynos4_clockevent_init(void) |
257 | { | 256 | { |
258 | clockevents_calc_mult_shift(&mct_comp_device, clk_rate, 5); | ||
259 | mct_comp_device.max_delta_ns = | ||
260 | clockevent_delta2ns(0xffffffff, &mct_comp_device); | ||
261 | mct_comp_device.min_delta_ns = | ||
262 | clockevent_delta2ns(0xf, &mct_comp_device); | ||
263 | mct_comp_device.cpumask = cpumask_of(0); | 257 | mct_comp_device.cpumask = cpumask_of(0); |
264 | clockevents_register_device(&mct_comp_device); | 258 | clockevents_config_and_register(&mct_comp_device, clk_rate, |
259 | 0xf, 0xffffffff); | ||
265 | 260 | ||
266 | if (soc_is_exynos5250()) | 261 | if (soc_is_exynos5250()) |
267 | setup_irq(EXYNOS5_IRQ_MCT_G0, &mct_comp_event_irq); | 262 | setup_irq(EXYNOS5_IRQ_MCT_G0, &mct_comp_event_irq); |
@@ -404,14 +399,8 @@ static int __cpuinit exynos4_local_timer_setup(struct clock_event_device *evt) | |||
404 | evt->set_mode = exynos4_tick_set_mode; | 399 | evt->set_mode = exynos4_tick_set_mode; |
405 | evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; | 400 | evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; |
406 | evt->rating = 450; | 401 | evt->rating = 450; |
407 | 402 | clockevents_config_and_register(evt, clk_rate / (TICK_BASE_CNT + 1), | |
408 | clockevents_calc_mult_shift(evt, clk_rate / (TICK_BASE_CNT + 1), 5); | 403 | 0xf, 0x7fffffff); |
409 | evt->max_delta_ns = | ||
410 | clockevent_delta2ns(0x7fffffff, evt); | ||
411 | evt->min_delta_ns = | ||
412 | clockevent_delta2ns(0xf, evt); | ||
413 | |||
414 | clockevents_register_device(evt); | ||
415 | 404 | ||
416 | exynos4_mct_write(TICK_BASE_CNT, mevt->base + MCT_L_TCNTB_OFFSET); | 405 | exynos4_mct_write(TICK_BASE_CNT, mevt->base + MCT_L_TCNTB_OFFSET); |
417 | 406 | ||
@@ -478,7 +467,7 @@ static void __init exynos4_timer_resources(void) | |||
478 | #endif /* CONFIG_LOCAL_TIMERS */ | 467 | #endif /* CONFIG_LOCAL_TIMERS */ |
479 | } | 468 | } |
480 | 469 | ||
481 | static void __init exynos_timer_init(void) | 470 | void __init exynos4_timer_init(void) |
482 | { | 471 | { |
483 | if (soc_is_exynos5440()) { | 472 | if (soc_is_exynos5440()) { |
484 | arch_timer_of_register(); | 473 | arch_timer_of_register(); |
@@ -494,7 +483,3 @@ static void __init exynos_timer_init(void) | |||
494 | exynos4_clocksource_init(); | 483 | exynos4_clocksource_init(); |
495 | exynos4_clockevent_init(); | 484 | exynos4_clockevent_init(); |
496 | } | 485 | } |
497 | |||
498 | struct sys_timer exynos4_timer = { | ||
499 | .init = exynos_timer_init, | ||
500 | }; | ||
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index c5c840e947b8..60f7c5be057d 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c | |||
@@ -20,9 +20,9 @@ | |||
20 | #include <linux/jiffies.h> | 20 | #include <linux/jiffies.h> |
21 | #include <linux/smp.h> | 21 | #include <linux/smp.h> |
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/irqchip/arm-gic.h> | ||
23 | 24 | ||
24 | #include <asm/cacheflush.h> | 25 | #include <asm/cacheflush.h> |
25 | #include <asm/hardware/gic.h> | ||
26 | #include <asm/smp_plat.h> | 26 | #include <asm/smp_plat.h> |
27 | #include <asm/smp_scu.h> | 27 | #include <asm/smp_scu.h> |
28 | 28 | ||
@@ -149,7 +149,7 @@ static int __cpuinit exynos_boot_secondary(unsigned int cpu, struct task_struct | |||
149 | 149 | ||
150 | __raw_writel(virt_to_phys(exynos4_secondary_startup), | 150 | __raw_writel(virt_to_phys(exynos4_secondary_startup), |
151 | cpu_boot_reg(phys_cpu)); | 151 | cpu_boot_reg(phys_cpu)); |
152 | gic_raise_softirq(cpumask_of(cpu), 0); | 152 | arch_send_wakeup_ipi_mask(cpumask_of(cpu)); |
153 | 153 | ||
154 | if (pen_release == -1) | 154 | if (pen_release == -1) |
155 | break; | 155 | break; |
@@ -190,8 +190,6 @@ static void __init exynos_smp_init_cpus(void) | |||
190 | 190 | ||
191 | for (i = 0; i < ncores; i++) | 191 | for (i = 0; i < ncores; i++) |
192 | set_cpu_possible(i, true); | 192 | set_cpu_possible(i, true); |
193 | |||
194 | set_smp_cross_call(gic_raise_softirq); | ||
195 | } | 193 | } |
196 | 194 | ||
197 | static void __init exynos_smp_prepare_cpus(unsigned int max_cpus) | 195 | static void __init exynos_smp_prepare_cpus(unsigned int max_cpus) |