diff options
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/board-dt-tegra20.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-dt-tegra30.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/common.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-tegra/irq.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/platsmp.c | 4 |
5 files changed, 4 insertions, 18 deletions
diff --git a/arch/arm/mach-tegra/board-dt-tegra20.c b/arch/arm/mach-tegra/board-dt-tegra20.c index 3b9956aabf5a..5ed81bab2d4b 100644 --- a/arch/arm/mach-tegra/board-dt-tegra20.c +++ b/arch/arm/mach-tegra/board-dt-tegra20.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/of.h> | 25 | #include <linux/of.h> |
26 | #include <linux/of_address.h> | 26 | #include <linux/of_address.h> |
27 | #include <linux/of_fdt.h> | 27 | #include <linux/of_fdt.h> |
28 | #include <linux/of_irq.h> | ||
29 | #include <linux/of_platform.h> | 28 | #include <linux/of_platform.h> |
30 | #include <linux/pda_power.h> | 29 | #include <linux/pda_power.h> |
31 | #include <linux/platform_data/tegra_usb.h> | 30 | #include <linux/platform_data/tegra_usb.h> |
@@ -34,7 +33,6 @@ | |||
34 | #include <linux/i2c-tegra.h> | 33 | #include <linux/i2c-tegra.h> |
35 | #include <linux/usb/tegra_usb_phy.h> | 34 | #include <linux/usb/tegra_usb_phy.h> |
36 | 35 | ||
37 | #include <asm/hardware/gic.h> | ||
38 | #include <asm/mach-types.h> | 36 | #include <asm/mach-types.h> |
39 | #include <asm/mach/arch.h> | 37 | #include <asm/mach/arch.h> |
40 | #include <asm/mach/time.h> | 38 | #include <asm/mach/time.h> |
@@ -202,7 +200,6 @@ DT_MACHINE_START(TEGRA_DT, "nVidia Tegra20 (Flattened Device Tree)") | |||
202 | .smp = smp_ops(tegra_smp_ops), | 200 | .smp = smp_ops(tegra_smp_ops), |
203 | .init_early = tegra20_init_early, | 201 | .init_early = tegra20_init_early, |
204 | .init_irq = tegra_dt_init_irq, | 202 | .init_irq = tegra_dt_init_irq, |
205 | .handle_irq = gic_handle_irq, | ||
206 | .init_time = tegra_init_timer, | 203 | .init_time = tegra_init_timer, |
207 | .init_machine = tegra_dt_init, | 204 | .init_machine = tegra_dt_init, |
208 | .init_late = tegra_dt_init_late, | 205 | .init_late = tegra_dt_init_late, |
diff --git a/arch/arm/mach-tegra/board-dt-tegra30.c b/arch/arm/mach-tegra/board-dt-tegra30.c index 381b2f25f0b4..12dc2ddeca64 100644 --- a/arch/arm/mach-tegra/board-dt-tegra30.c +++ b/arch/arm/mach-tegra/board-dt-tegra30.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/of_platform.h> | 31 | #include <linux/of_platform.h> |
32 | 32 | ||
33 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
34 | #include <asm/hardware/gic.h> | ||
35 | 34 | ||
36 | #include "board.h" | 35 | #include "board.h" |
37 | #include "clock.h" | 36 | #include "clock.h" |
@@ -112,7 +111,6 @@ DT_MACHINE_START(TEGRA30_DT, "NVIDIA Tegra30 (Flattened Device Tree)") | |||
112 | .map_io = tegra_map_common_io, | 111 | .map_io = tegra_map_common_io, |
113 | .init_early = tegra30_init_early, | 112 | .init_early = tegra30_init_early, |
114 | .init_irq = tegra_dt_init_irq, | 113 | .init_irq = tegra_dt_init_irq, |
115 | .handle_irq = gic_handle_irq, | ||
116 | .init_time = tegra_init_timer, | 114 | .init_time = tegra_init_timer, |
117 | .init_machine = tegra30_dt_init, | 115 | .init_machine = tegra30_dt_init, |
118 | .init_late = tegra_init_late, | 116 | .init_late = tegra_init_late, |
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index d54cfc54b9fe..3599959517b3 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c | |||
@@ -21,10 +21,9 @@ | |||
21 | #include <linux/io.h> | 21 | #include <linux/io.h> |
22 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
23 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
24 | #include <linux/of_irq.h> | 24 | #include <linux/irqchip.h> |
25 | 25 | ||
26 | #include <asm/hardware/cache-l2x0.h> | 26 | #include <asm/hardware/cache-l2x0.h> |
27 | #include <asm/hardware/gic.h> | ||
28 | 27 | ||
29 | #include <mach/powergate.h> | 28 | #include <mach/powergate.h> |
30 | 29 | ||
@@ -57,15 +56,10 @@ u32 tegra_uart_config[4] = { | |||
57 | }; | 56 | }; |
58 | 57 | ||
59 | #ifdef CONFIG_OF | 58 | #ifdef CONFIG_OF |
60 | static const struct of_device_id tegra_dt_irq_match[] __initconst = { | ||
61 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init }, | ||
62 | { } | ||
63 | }; | ||
64 | |||
65 | void __init tegra_dt_init_irq(void) | 59 | void __init tegra_dt_init_irq(void) |
66 | { | 60 | { |
67 | tegra_init_irq(); | 61 | tegra_init_irq(); |
68 | of_irq_init(tegra_dt_irq_match); | 62 | irqchip_init(); |
69 | } | 63 | } |
70 | #endif | 64 | #endif |
71 | 65 | ||
diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c index b7886f183511..2ff2128cb9d8 100644 --- a/arch/arm/mach-tegra/irq.c +++ b/arch/arm/mach-tegra/irq.c | |||
@@ -22,8 +22,7 @@ | |||
22 | #include <linux/irq.h> | 22 | #include <linux/irq.h> |
23 | #include <linux/io.h> | 23 | #include <linux/io.h> |
24 | #include <linux/of.h> | 24 | #include <linux/of.h> |
25 | 25 | #include <linux/irqchip/arm-gic.h> | |
26 | #include <asm/hardware/gic.h> | ||
27 | 26 | ||
28 | #include "board.h" | 27 | #include "board.h" |
29 | #include "iomap.h" | 28 | #include "iomap.h" |
diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c index 1b926df99c4b..18d7290cf93b 100644 --- a/arch/arm/mach-tegra/platsmp.c +++ b/arch/arm/mach-tegra/platsmp.c | |||
@@ -18,9 +18,9 @@ | |||
18 | #include <linux/jiffies.h> | 18 | #include <linux/jiffies.h> |
19 | #include <linux/smp.h> | 19 | #include <linux/smp.h> |
20 | #include <linux/io.h> | 20 | #include <linux/io.h> |
21 | #include <linux/irqchip/arm-gic.h> | ||
21 | 22 | ||
22 | #include <asm/cacheflush.h> | 23 | #include <asm/cacheflush.h> |
23 | #include <asm/hardware/gic.h> | ||
24 | #include <asm/mach-types.h> | 24 | #include <asm/mach-types.h> |
25 | #include <asm/smp_scu.h> | 25 | #include <asm/smp_scu.h> |
26 | 26 | ||
@@ -159,8 +159,6 @@ static void __init tegra_smp_init_cpus(void) | |||
159 | 159 | ||
160 | for (i = 0; i < ncores; i++) | 160 | for (i = 0; i < ncores; i++) |
161 | set_cpu_possible(i, true); | 161 | set_cpu_possible(i, true); |
162 | |||
163 | set_smp_cross_call(gic_raise_softirq); | ||
164 | } | 162 | } |
165 | 163 | ||
166 | static void __init tegra_smp_prepare_cpus(unsigned int max_cpus) | 164 | static void __init tegra_smp_prepare_cpus(unsigned int max_cpus) |