aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-highbank
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-10-28 13:11:42 -0400
committerOlof Johansson <olof@lixom.net>2013-10-28 13:11:42 -0400
commit0fc869e8f22bc74a9971f9025f8608d6587c4fb7 (patch)
tree7c0d565e13309f1c3e9931265e8f44b50b53d8a7 /arch/arm/mach-highbank
parent4dcf03346af269579fdfdadb662d22035c9fceb6 (diff)
parent64cc69abbb32e17aa44d2c696eca65cb6f9364ca (diff)
Merge branch 'cleanup/dt-clock' into next/soc
Merging in dt clock cleanup as a pre-req with some of the later SoC branches. There are a handful of conflicts here -- some of the already merged SoC branches should have been based on the cleanup but weren't. In particular, a remove/add of include on highbank and two remove/remove conflicts on kirkwood were fixed up. * cleanup/dt-clock: (28 commits) ARM: vt8500: remove custom .init_time hook ARM: vexpress: remove custom .init_time hook ARM: tegra: remove custom .init_time hook ARM: sunxi: remove custom .init_time hook ARM: sti: remove custom .init_time hook ARM: socfpga: remove custom .init_time hook ARM: rockchip: remove custom .init_time hook ARM: prima2: remove custom .init_time hook ARM: nspire: remove custom .init_time hook ARM: nomadik: remove custom .init_time hook ARM: mxs: remove custom .init_time hook ARM: kirkwood: remove custom .init_time hook ARM: imx: remove custom .init_time hook ARM: highbank: remove custom .init_time hook ARM: exynos: remove custom .init_time hook ARM: dove: remove custom .init_time hook ARM: bcm2835: remove custom .init_time hook ARM: bcm: provide common arch init for DT clocks ARM: call of_clk_init from default time_init handler ARM: vt8500: prepare for arch-wide .init_time callback ... Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-highbank')
-rw-r--r--arch/arm/mach-highbank/highbank.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
index 0c49beb37cee..b3d7e5634b83 100644
--- a/arch/arm/mach-highbank/highbank.c
+++ b/arch/arm/mach-highbank/highbank.c
@@ -24,7 +24,6 @@
24#include <linux/of_platform.h> 24#include <linux/of_platform.h>
25#include <linux/of_address.h> 25#include <linux/of_address.h>
26#include <linux/amba/bus.h> 26#include <linux/amba/bus.h>
27#include <linux/clk-provider.h>
28#include <linux/platform_device.h> 27#include <linux/platform_device.h>
29 28
30#include <asm/psci.h> 29#include <asm/psci.h>
@@ -71,20 +70,6 @@ static void __init highbank_init_irq(void)
71 } 70 }
72} 71}
73 72
74static void __init highbank_timer_init(void)
75{
76 struct device_node *np;
77
78 /* Map system registers */
79 np = of_find_compatible_node(NULL, NULL, "calxeda,hb-sregs");
80 sregs_base = of_iomap(np, 0);
81 WARN_ON(!sregs_base);
82
83 of_clk_init(NULL);
84
85 clocksource_of_init();
86}
87
88static void highbank_power_off(void) 73static void highbank_power_off(void)
89{ 74{
90 highbank_set_pwr_shutdown(); 75 highbank_set_pwr_shutdown();
@@ -147,6 +132,13 @@ static struct platform_device highbank_cpuidle_device = {
147 132
148static void __init highbank_init(void) 133static void __init highbank_init(void)
149{ 134{
135 struct device_node *np;
136
137 /* Map system registers */
138 np = of_find_compatible_node(NULL, NULL, "calxeda,hb-sregs");
139 sregs_base = of_iomap(np, 0);
140 WARN_ON(!sregs_base);
141
150 pm_power_off = highbank_power_off; 142 pm_power_off = highbank_power_off;
151 highbank_pm_init(); 143 highbank_pm_init();
152 144
@@ -170,7 +162,6 @@ DT_MACHINE_START(HIGHBANK, "Highbank")
170 .dma_zone_size = (4ULL * SZ_1G), 162 .dma_zone_size = (4ULL * SZ_1G),
171#endif 163#endif
172 .init_irq = highbank_init_irq, 164 .init_irq = highbank_init_irq,
173 .init_time = highbank_timer_init,
174 .init_machine = highbank_init, 165 .init_machine = highbank_init,
175 .dt_compat = highbank_match, 166 .dt_compat = highbank_match,
176 .restart = highbank_restart, 167 .restart = highbank_restart,