diff options
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-ux500/cpu-db8500.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ux500/include/mach/setup.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-ux500/timer.c | 13 |
4 files changed, 7 insertions, 19 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index d453522edb0d..e1dfa24b4fb9 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -751,7 +751,7 @@ MACHINE_START(U8500, "ST-Ericsson MOP500 platform") | |||
751 | .map_io = u8500_map_io, | 751 | .map_io = u8500_map_io, |
752 | .init_irq = ux500_init_irq, | 752 | .init_irq = ux500_init_irq, |
753 | /* we re-use nomadik timer here */ | 753 | /* we re-use nomadik timer here */ |
754 | .timer = &ux500_timer, | 754 | .init_time = ux500_timer_init, |
755 | .handle_irq = gic_handle_irq, | 755 | .handle_irq = gic_handle_irq, |
756 | .init_machine = mop500_init_machine, | 756 | .init_machine = mop500_init_machine, |
757 | .init_late = ux500_init_late, | 757 | .init_late = ux500_init_late, |
@@ -761,7 +761,7 @@ MACHINE_START(U8520, "ST-Ericsson U8520 Platform HREFP520") | |||
761 | .atag_offset = 0x100, | 761 | .atag_offset = 0x100, |
762 | .map_io = u8500_map_io, | 762 | .map_io = u8500_map_io, |
763 | .init_irq = ux500_init_irq, | 763 | .init_irq = ux500_init_irq, |
764 | .timer = &ux500_timer, | 764 | .init_time = ux500_timer_init, |
765 | .handle_irq = gic_handle_irq, | 765 | .handle_irq = gic_handle_irq, |
766 | .init_machine = mop500_init_machine, | 766 | .init_machine = mop500_init_machine, |
767 | .init_late = ux500_init_late, | 767 | .init_late = ux500_init_late, |
@@ -772,7 +772,7 @@ MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+") | |||
772 | .smp = smp_ops(ux500_smp_ops), | 772 | .smp = smp_ops(ux500_smp_ops), |
773 | .map_io = u8500_map_io, | 773 | .map_io = u8500_map_io, |
774 | .init_irq = ux500_init_irq, | 774 | .init_irq = ux500_init_irq, |
775 | .timer = &ux500_timer, | 775 | .init_time = ux500_timer_init, |
776 | .handle_irq = gic_handle_irq, | 776 | .handle_irq = gic_handle_irq, |
777 | .init_machine = hrefv60_init_machine, | 777 | .init_machine = hrefv60_init_machine, |
778 | .init_late = ux500_init_late, | 778 | .init_late = ux500_init_late, |
@@ -784,7 +784,7 @@ MACHINE_START(SNOWBALL, "Calao Systems Snowball platform") | |||
784 | .map_io = u8500_map_io, | 784 | .map_io = u8500_map_io, |
785 | .init_irq = ux500_init_irq, | 785 | .init_irq = ux500_init_irq, |
786 | /* we re-use nomadik timer here */ | 786 | /* we re-use nomadik timer here */ |
787 | .timer = &ux500_timer, | 787 | .init_time = ux500_timer_init, |
788 | .handle_irq = gic_handle_irq, | 788 | .handle_irq = gic_handle_irq, |
789 | .init_machine = snowball_init_machine, | 789 | .init_machine = snowball_init_machine, |
790 | .init_late = NULL, | 790 | .init_late = NULL, |
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index db0bb75e2c76..7875d3c85df1 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c | |||
@@ -340,7 +340,7 @@ DT_MACHINE_START(U8500_DT, "ST-Ericsson Ux5x0 platform (Device Tree Support)") | |||
340 | .map_io = u8500_map_io, | 340 | .map_io = u8500_map_io, |
341 | .init_irq = ux500_init_irq, | 341 | .init_irq = ux500_init_irq, |
342 | /* we re-use nomadik timer here */ | 342 | /* we re-use nomadik timer here */ |
343 | .timer = &ux500_timer, | 343 | .init_time = ux500_timer_init, |
344 | .handle_irq = gic_handle_irq, | 344 | .handle_irq = gic_handle_irq, |
345 | .init_machine = u8500_init_machine, | 345 | .init_machine = u8500_init_machine, |
346 | .init_late = NULL, | 346 | .init_late = NULL, |
diff --git a/arch/arm/mach-ux500/include/mach/setup.h b/arch/arm/mach-ux500/include/mach/setup.h index 6be4c4d2ab88..bddce2b49372 100644 --- a/arch/arm/mach-ux500/include/mach/setup.h +++ b/arch/arm/mach-ux500/include/mach/setup.h | |||
@@ -28,8 +28,7 @@ extern struct device *ux500_soc_device_init(const char *soc_id); | |||
28 | struct amba_device; | 28 | struct amba_device; |
29 | extern void __init amba_add_devices(struct amba_device *devs[], int num); | 29 | extern void __init amba_add_devices(struct amba_device *devs[], int num); |
30 | 30 | ||
31 | struct sys_timer; | 31 | extern void ux500_timer_init(void); |
32 | extern struct sys_timer ux500_timer; | ||
33 | 32 | ||
34 | #define __IO_DEV_DESC(x, sz) { \ | 33 | #define __IO_DEV_DESC(x, sz) { \ |
35 | .virtual = IO_ADDRESS(x), \ | 34 | .virtual = IO_ADDRESS(x), \ |
diff --git a/arch/arm/mach-ux500/timer.c b/arch/arm/mach-ux500/timer.c index 875309acb022..aa2a78acb59e 100644 --- a/arch/arm/mach-ux500/timer.c +++ b/arch/arm/mach-ux500/timer.c | |||
@@ -46,7 +46,7 @@ const static struct of_device_id prcmu_timer_of_match[] __initconst = { | |||
46 | { }, | 46 | { }, |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static void __init ux500_timer_init(void) | 49 | void __init ux500_timer_init(void) |
50 | { | 50 | { |
51 | void __iomem *mtu_timer_base; | 51 | void __iomem *mtu_timer_base; |
52 | void __iomem *prcmu_timer_base; | 52 | void __iomem *prcmu_timer_base; |
@@ -99,14 +99,3 @@ dt_fail: | |||
99 | clksrc_dbx500_prcmu_init(prcmu_timer_base); | 99 | clksrc_dbx500_prcmu_init(prcmu_timer_base); |
100 | ux500_twd_init(); | 100 | ux500_twd_init(); |
101 | } | 101 | } |
102 | |||
103 | static void ux500_timer_reset(void) | ||
104 | { | ||
105 | nmdk_clkevt_reset(); | ||
106 | nmdk_clksrc_reset(); | ||
107 | } | ||
108 | |||
109 | struct sys_timer ux500_timer = { | ||
110 | .init = ux500_timer_init, | ||
111 | .resume = ux500_timer_reset, | ||
112 | }; | ||