diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 17:58:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 17:58:40 -0500 |
commit | b274776c54c320763bc12eb035c0e244f76ccb43 (patch) | |
tree | c75b70d0824a7ae029229b19d61884039abf2127 /arch/arm/mach-realview | |
parent | b24174b0cbbe383c5bb6097aeb24480b8fd2d338 (diff) | |
parent | 3b1209e7994c4d31ff9932a7f566ae1c96b3c443 (diff) |
Merge tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC cleanups from Arnd Bergmann:
"A large number of cleanups, all over the platforms. This is dominated
largely by the Samsung platforms (s3c, s5p, exynos) and a few of the
others moving code out of arch/arm into more appropriate subsystems.
The clocksource and irqchip drivers are now abstracted to the point
where platforms that are already cleaned up do not need to even
specify the driver they use, it can all get configured from the device
tree as we do for normal device drivers. The clocksource changes
basically touch every single platform in the process.
We further clean up the use of platform specific header files here,
with the goal of turning more of the platforms over to being
"multiplatform" enabled, which implies that they cannot expose their
headers to architecture independent code any more.
It is expected that no functional changes are part of the cleanup.
The overall reduction in total code lines is mostly the result of
removing broken and obsolete code."
* tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (133 commits)
ARM: mvebu: correct gated clock documentation
ARM: kirkwood: add missing include for nsa310
ARM: exynos: move exynos4210-combiner to drivers/irqchip
mfd: db8500-prcmu: update resource passing
drivers/db8500-cpufreq: delete dangling include
ARM: at91: remove NEOCORE 926 board
sunxi: Cleanup the reset code and add meaningful registers defines
ARM: S3C24XX: header mach/regs-mem.h local
ARM: S3C24XX: header mach/regs-power.h local
ARM: S3C24XX: header mach/regs-s3c2412-mem.h local
ARM: S3C24XX: Remove plat-s3c24xx directory in arch/arm/
ARM: S3C24XX: transform s3c2443 subirqs into new structure
ARM: S3C24XX: modify s3c2443 irq init to initialize all irqs
ARM: S3C24XX: move s3c2443 irq code to irq.c
ARM: S3C24XX: transform s3c2416 irqs into new structure
ARM: S3C24XX: modify s3c2416 irq init to initialize all irqs
ARM: S3C24XX: move s3c2416 irq init to common irq code
ARM: S3C24XX: Modify s3c_irq_wake to use the hwirq property
ARM: S3C24XX: Move irq syscore-ops to irq-pm
clocksource: always define CLOCKSOURCE_OF_DECLARE
...
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r-- | arch/arm/mach-realview/core.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-realview/include/mach/uncompress.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-realview/platsmp.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-realview/realview_eb.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-realview/realview_pb1176.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-realview/realview_pb11mp.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-realview/realview_pba8.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-realview/realview_pbx.c | 9 |
8 files changed, 10 insertions, 40 deletions
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 682467480588..1d5ee5c9a1dc 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include <asm/mach/irq.h> | 42 | #include <asm/mach/irq.h> |
43 | #include <asm/mach/map.h> | 43 | #include <asm/mach/map.h> |
44 | 44 | ||
45 | #include <asm/hardware/gic.h> | ||
46 | 45 | ||
47 | #include <mach/platform.h> | 46 | #include <mach/platform.h> |
48 | #include <mach/irqs.h> | 47 | #include <mach/irqs.h> |
diff --git a/arch/arm/mach-realview/include/mach/uncompress.h b/arch/arm/mach-realview/include/mach/uncompress.h index 83050378ffd2..cfa30d21783b 100644 --- a/arch/arm/mach-realview/include/mach/uncompress.h +++ b/arch/arm/mach-realview/include/mach/uncompress.h | |||
@@ -75,4 +75,3 @@ static inline void flush(void) | |||
75 | * nothing to do | 75 | * nothing to do |
76 | */ | 76 | */ |
77 | #define arch_decomp_setup() | 77 | #define arch_decomp_setup() |
78 | #define arch_decomp_wdog() | ||
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c index 300f7064465d..98e3052b7933 100644 --- a/arch/arm/mach-realview/platsmp.c +++ b/arch/arm/mach-realview/platsmp.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | 15 | ||
16 | #include <mach/hardware.h> | 16 | #include <mach/hardware.h> |
17 | #include <asm/hardware/gic.h> | ||
18 | #include <asm/mach-types.h> | 17 | #include <asm/mach-types.h> |
19 | #include <asm/smp_scu.h> | 18 | #include <asm/smp_scu.h> |
20 | 19 | ||
@@ -59,8 +58,6 @@ static void __init realview_smp_init_cpus(void) | |||
59 | 58 | ||
60 | for (i = 0; i < ncores; i++) | 59 | for (i = 0; i < ncores; i++) |
61 | set_cpu_possible(i, true); | 60 | set_cpu_possible(i, true); |
62 | |||
63 | set_smp_cross_call(gic_raise_softirq); | ||
64 | } | 61 | } |
65 | 62 | ||
66 | static void __init realview_smp_prepare_cpus(unsigned int max_cpus) | 63 | static void __init realview_smp_prepare_cpus(unsigned int max_cpus) |
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index 28511d43637a..5b1c8bfe6fa9 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -27,13 +27,13 @@ | |||
27 | #include <linux/amba/mmci.h> | 27 | #include <linux/amba/mmci.h> |
28 | #include <linux/amba/pl022.h> | 28 | #include <linux/amba/pl022.h> |
29 | #include <linux/io.h> | 29 | #include <linux/io.h> |
30 | #include <linux/irqchip/arm-gic.h> | ||
30 | #include <linux/platform_data/clk-realview.h> | 31 | #include <linux/platform_data/clk-realview.h> |
31 | 32 | ||
32 | #include <mach/hardware.h> | 33 | #include <mach/hardware.h> |
33 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
34 | #include <asm/mach-types.h> | 35 | #include <asm/mach-types.h> |
35 | #include <asm/pgtable.h> | 36 | #include <asm/pgtable.h> |
36 | #include <asm/hardware/gic.h> | ||
37 | #include <asm/hardware/cache-l2x0.h> | 37 | #include <asm/hardware/cache-l2x0.h> |
38 | #include <asm/smp_twd.h> | 38 | #include <asm/smp_twd.h> |
39 | 39 | ||
@@ -418,10 +418,6 @@ static void __init realview_eb_timer_init(void) | |||
418 | realview_eb_twd_init(); | 418 | realview_eb_twd_init(); |
419 | } | 419 | } |
420 | 420 | ||
421 | static struct sys_timer realview_eb_timer = { | ||
422 | .init = realview_eb_timer_init, | ||
423 | }; | ||
424 | |||
425 | static void realview_eb_restart(char mode, const char *cmd) | 421 | static void realview_eb_restart(char mode, const char *cmd) |
426 | { | 422 | { |
427 | void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); | 423 | void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); |
@@ -472,8 +468,7 @@ MACHINE_START(REALVIEW_EB, "ARM-RealView EB") | |||
472 | .map_io = realview_eb_map_io, | 468 | .map_io = realview_eb_map_io, |
473 | .init_early = realview_init_early, | 469 | .init_early = realview_init_early, |
474 | .init_irq = gic_init_irq, | 470 | .init_irq = gic_init_irq, |
475 | .timer = &realview_eb_timer, | 471 | .init_time = realview_eb_timer_init, |
476 | .handle_irq = gic_handle_irq, | ||
477 | .init_machine = realview_eb_init, | 472 | .init_machine = realview_eb_init, |
478 | #ifdef CONFIG_ZONE_DMA | 473 | #ifdef CONFIG_ZONE_DMA |
479 | .dma_zone_size = SZ_256M, | 474 | .dma_zone_size = SZ_256M, |
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c index 07d6672ddae7..d5e83a1f6982 100644 --- a/arch/arm/mach-realview/realview_pb1176.c +++ b/arch/arm/mach-realview/realview_pb1176.c | |||
@@ -29,13 +29,13 @@ | |||
29 | #include <linux/mtd/physmap.h> | 29 | #include <linux/mtd/physmap.h> |
30 | #include <linux/mtd/partitions.h> | 30 | #include <linux/mtd/partitions.h> |
31 | #include <linux/io.h> | 31 | #include <linux/io.h> |
32 | #include <linux/irqchip/arm-gic.h> | ||
32 | #include <linux/platform_data/clk-realview.h> | 33 | #include <linux/platform_data/clk-realview.h> |
33 | 34 | ||
34 | #include <mach/hardware.h> | 35 | #include <mach/hardware.h> |
35 | #include <asm/irq.h> | 36 | #include <asm/irq.h> |
36 | #include <asm/mach-types.h> | 37 | #include <asm/mach-types.h> |
37 | #include <asm/pgtable.h> | 38 | #include <asm/pgtable.h> |
38 | #include <asm/hardware/gic.h> | ||
39 | #include <asm/hardware/cache-l2x0.h> | 39 | #include <asm/hardware/cache-l2x0.h> |
40 | 40 | ||
41 | #include <asm/mach/arch.h> | 41 | #include <asm/mach/arch.h> |
@@ -329,10 +329,6 @@ static void __init realview_pb1176_timer_init(void) | |||
329 | realview_timer_init(IRQ_DC1176_TIMER0); | 329 | realview_timer_init(IRQ_DC1176_TIMER0); |
330 | } | 330 | } |
331 | 331 | ||
332 | static struct sys_timer realview_pb1176_timer = { | ||
333 | .init = realview_pb1176_timer_init, | ||
334 | }; | ||
335 | |||
336 | static void realview_pb1176_restart(char mode, const char *cmd) | 332 | static void realview_pb1176_restart(char mode, const char *cmd) |
337 | { | 333 | { |
338 | void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); | 334 | void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); |
@@ -384,8 +380,7 @@ MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176") | |||
384 | .map_io = realview_pb1176_map_io, | 380 | .map_io = realview_pb1176_map_io, |
385 | .init_early = realview_init_early, | 381 | .init_early = realview_init_early, |
386 | .init_irq = gic_init_irq, | 382 | .init_irq = gic_init_irq, |
387 | .timer = &realview_pb1176_timer, | 383 | .init_time = realview_pb1176_timer_init, |
388 | .handle_irq = gic_handle_irq, | ||
389 | .init_machine = realview_pb1176_init, | 384 | .init_machine = realview_pb1176_init, |
390 | #ifdef CONFIG_ZONE_DMA | 385 | #ifdef CONFIG_ZONE_DMA |
391 | .dma_zone_size = SZ_256M, | 386 | .dma_zone_size = SZ_256M, |
diff --git a/arch/arm/mach-realview/realview_pb11mp.c b/arch/arm/mach-realview/realview_pb11mp.c index 7ed53d75350f..c3cfe213b5e6 100644 --- a/arch/arm/mach-realview/realview_pb11mp.c +++ b/arch/arm/mach-realview/realview_pb11mp.c | |||
@@ -27,13 +27,13 @@ | |||
27 | #include <linux/amba/mmci.h> | 27 | #include <linux/amba/mmci.h> |
28 | #include <linux/amba/pl022.h> | 28 | #include <linux/amba/pl022.h> |
29 | #include <linux/io.h> | 29 | #include <linux/io.h> |
30 | #include <linux/irqchip/arm-gic.h> | ||
30 | #include <linux/platform_data/clk-realview.h> | 31 | #include <linux/platform_data/clk-realview.h> |
31 | 32 | ||
32 | #include <mach/hardware.h> | 33 | #include <mach/hardware.h> |
33 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
34 | #include <asm/mach-types.h> | 35 | #include <asm/mach-types.h> |
35 | #include <asm/pgtable.h> | 36 | #include <asm/pgtable.h> |
36 | #include <asm/hardware/gic.h> | ||
37 | #include <asm/hardware/cache-l2x0.h> | 37 | #include <asm/hardware/cache-l2x0.h> |
38 | #include <asm/smp_twd.h> | 38 | #include <asm/smp_twd.h> |
39 | 39 | ||
@@ -316,10 +316,6 @@ static void __init realview_pb11mp_timer_init(void) | |||
316 | realview_pb11mp_twd_init(); | 316 | realview_pb11mp_twd_init(); |
317 | } | 317 | } |
318 | 318 | ||
319 | static struct sys_timer realview_pb11mp_timer = { | ||
320 | .init = realview_pb11mp_timer_init, | ||
321 | }; | ||
322 | |||
323 | static void realview_pb11mp_restart(char mode, const char *cmd) | 319 | static void realview_pb11mp_restart(char mode, const char *cmd) |
324 | { | 320 | { |
325 | void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); | 321 | void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); |
@@ -367,8 +363,7 @@ MACHINE_START(REALVIEW_PB11MP, "ARM-RealView PB11MPCore") | |||
367 | .map_io = realview_pb11mp_map_io, | 363 | .map_io = realview_pb11mp_map_io, |
368 | .init_early = realview_init_early, | 364 | .init_early = realview_init_early, |
369 | .init_irq = gic_init_irq, | 365 | .init_irq = gic_init_irq, |
370 | .timer = &realview_pb11mp_timer, | 366 | .init_time = realview_pb11mp_timer_init, |
371 | .handle_irq = gic_handle_irq, | ||
372 | .init_machine = realview_pb11mp_init, | 367 | .init_machine = realview_pb11mp_init, |
373 | #ifdef CONFIG_ZONE_DMA | 368 | #ifdef CONFIG_ZONE_DMA |
374 | .dma_zone_size = SZ_256M, | 369 | .dma_zone_size = SZ_256M, |
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c index 9992431b8a15..dde652a59620 100644 --- a/arch/arm/mach-realview/realview_pba8.c +++ b/arch/arm/mach-realview/realview_pba8.c | |||
@@ -27,12 +27,12 @@ | |||
27 | #include <linux/amba/mmci.h> | 27 | #include <linux/amba/mmci.h> |
28 | #include <linux/amba/pl022.h> | 28 | #include <linux/amba/pl022.h> |
29 | #include <linux/io.h> | 29 | #include <linux/io.h> |
30 | #include <linux/irqchip/arm-gic.h> | ||
30 | #include <linux/platform_data/clk-realview.h> | 31 | #include <linux/platform_data/clk-realview.h> |
31 | 32 | ||
32 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
33 | #include <asm/mach-types.h> | 34 | #include <asm/mach-types.h> |
34 | #include <asm/pgtable.h> | 35 | #include <asm/pgtable.h> |
35 | #include <asm/hardware/gic.h> | ||
36 | 36 | ||
37 | #include <asm/mach/arch.h> | 37 | #include <asm/mach/arch.h> |
38 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
@@ -264,10 +264,6 @@ static void __init realview_pba8_timer_init(void) | |||
264 | realview_timer_init(IRQ_PBA8_TIMER0_1); | 264 | realview_timer_init(IRQ_PBA8_TIMER0_1); |
265 | } | 265 | } |
266 | 266 | ||
267 | static struct sys_timer realview_pba8_timer = { | ||
268 | .init = realview_pba8_timer_init, | ||
269 | }; | ||
270 | |||
271 | static void realview_pba8_restart(char mode, const char *cmd) | 267 | static void realview_pba8_restart(char mode, const char *cmd) |
272 | { | 268 | { |
273 | void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); | 269 | void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); |
@@ -308,8 +304,7 @@ MACHINE_START(REALVIEW_PBA8, "ARM-RealView PB-A8") | |||
308 | .map_io = realview_pba8_map_io, | 304 | .map_io = realview_pba8_map_io, |
309 | .init_early = realview_init_early, | 305 | .init_early = realview_init_early, |
310 | .init_irq = gic_init_irq, | 306 | .init_irq = gic_init_irq, |
311 | .timer = &realview_pba8_timer, | 307 | .init_time = realview_pba8_timer_init, |
312 | .handle_irq = gic_handle_irq, | ||
313 | .init_machine = realview_pba8_init, | 308 | .init_machine = realview_pba8_init, |
314 | #ifdef CONFIG_ZONE_DMA | 309 | #ifdef CONFIG_ZONE_DMA |
315 | .dma_zone_size = SZ_256M, | 310 | .dma_zone_size = SZ_256M, |
diff --git a/arch/arm/mach-realview/realview_pbx.c b/arch/arm/mach-realview/realview_pbx.c index 4f486f05108a..54f0185b01e3 100644 --- a/arch/arm/mach-realview/realview_pbx.c +++ b/arch/arm/mach-realview/realview_pbx.c | |||
@@ -26,13 +26,13 @@ | |||
26 | #include <linux/amba/mmci.h> | 26 | #include <linux/amba/mmci.h> |
27 | #include <linux/amba/pl022.h> | 27 | #include <linux/amba/pl022.h> |
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | #include <linux/irqchip/arm-gic.h> | ||
29 | #include <linux/platform_data/clk-realview.h> | 30 | #include <linux/platform_data/clk-realview.h> |
30 | 31 | ||
31 | #include <asm/irq.h> | 32 | #include <asm/irq.h> |
32 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
33 | #include <asm/smp_twd.h> | 34 | #include <asm/smp_twd.h> |
34 | #include <asm/pgtable.h> | 35 | #include <asm/pgtable.h> |
35 | #include <asm/hardware/gic.h> | ||
36 | #include <asm/hardware/cache-l2x0.h> | 36 | #include <asm/hardware/cache-l2x0.h> |
37 | 37 | ||
38 | #include <asm/mach/arch.h> | 38 | #include <asm/mach/arch.h> |
@@ -324,10 +324,6 @@ static void __init realview_pbx_timer_init(void) | |||
324 | realview_pbx_twd_init(); | 324 | realview_pbx_twd_init(); |
325 | } | 325 | } |
326 | 326 | ||
327 | static struct sys_timer realview_pbx_timer = { | ||
328 | .init = realview_pbx_timer_init, | ||
329 | }; | ||
330 | |||
331 | static void realview_pbx_fixup(struct tag *tags, char **from, | 327 | static void realview_pbx_fixup(struct tag *tags, char **from, |
332 | struct meminfo *meminfo) | 328 | struct meminfo *meminfo) |
333 | { | 329 | { |
@@ -404,8 +400,7 @@ MACHINE_START(REALVIEW_PBX, "ARM-RealView PBX") | |||
404 | .map_io = realview_pbx_map_io, | 400 | .map_io = realview_pbx_map_io, |
405 | .init_early = realview_init_early, | 401 | .init_early = realview_init_early, |
406 | .init_irq = gic_init_irq, | 402 | .init_irq = gic_init_irq, |
407 | .timer = &realview_pbx_timer, | 403 | .init_time = realview_pbx_timer_init, |
408 | .handle_irq = gic_handle_irq, | ||
409 | .init_machine = realview_pbx_init, | 404 | .init_machine = realview_pbx_init, |
410 | #ifdef CONFIG_ZONE_DMA | 405 | #ifdef CONFIG_ZONE_DMA |
411 | .dma_zone_size = SZ_256M, | 406 | .dma_zone_size = SZ_256M, |