aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-dove/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-dove/common.c')
-rw-r--r--arch/arm/mach-dove/common.c37
1 files changed, 11 insertions, 26 deletions
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
index 89f4f993cd03..ea84c535a110 100644
--- a/arch/arm/mach-dove/common.c
+++ b/arch/arm/mach-dove/common.c
@@ -8,35 +8,24 @@
8 * warranty of any kind, whether express or implied. 8 * warranty of any kind, whether express or implied.
9 */ 9 */
10 10
11#include <linux/kernel.h>
12#include <linux/delay.h>
13#include <linux/init.h>
14#include <linux/platform_device.h>
15#include <linux/pci.h>
16#include <linux/clk-provider.h> 11#include <linux/clk-provider.h>
17#include <linux/clk/mvebu.h> 12#include <linux/clk/mvebu.h>
18#include <linux/ata_platform.h> 13#include <linux/dma-mapping.h>
19#include <linux/gpio.h> 14#include <linux/init.h>
20#include <linux/of.h> 15#include <linux/of.h>
21#include <linux/of_platform.h> 16#include <linux/of_platform.h>
22#include <asm/page.h> 17#include <linux/platform_data/dma-mv_xor.h>
23#include <asm/setup.h> 18#include <linux/platform_data/usb-ehci-orion.h>
24#include <asm/timex.h> 19#include <linux/platform_device.h>
25#include <asm/hardware/cache-tauros2.h> 20#include <asm/hardware/cache-tauros2.h>
21#include <asm/mach/arch.h>
26#include <asm/mach/map.h> 22#include <asm/mach/map.h>
27#include <asm/mach/time.h> 23#include <asm/mach/time.h>
28#include <asm/mach/pci.h>
29#include <mach/dove.h>
30#include <mach/pm.h>
31#include <mach/bridge-regs.h> 24#include <mach/bridge-regs.h>
32#include <asm/mach/arch.h> 25#include <mach/pm.h>
33#include <linux/irq.h>
34#include <plat/time.h>
35#include <linux/platform_data/usb-ehci-orion.h>
36#include <linux/platform_data/dma-mv_xor.h>
37#include <plat/irq.h>
38#include <plat/common.h> 26#include <plat/common.h>
39#include <plat/addr-map.h> 27#include <plat/irq.h>
28#include <plat/time.h>
40#include "common.h" 29#include "common.h"
41 30
42/***************************************************************************** 31/*****************************************************************************
@@ -242,17 +231,13 @@ static int __init dove_find_tclk(void)
242 return 166666667; 231 return 166666667;
243} 232}
244 233
245static void __init dove_timer_init(void) 234void __init dove_timer_init(void)
246{ 235{
247 dove_tclk = dove_find_tclk(); 236 dove_tclk = dove_find_tclk();
248 orion_time_init(BRIDGE_VIRT_BASE, BRIDGE_INT_TIMER1_CLR, 237 orion_time_init(BRIDGE_VIRT_BASE, BRIDGE_INT_TIMER1_CLR,
249 IRQ_DOVE_BRIDGE, dove_tclk); 238 IRQ_DOVE_BRIDGE, dove_tclk);
250} 239}
251 240
252struct sys_timer dove_timer = {
253 .init = dove_timer_init,
254};
255
256/***************************************************************************** 241/*****************************************************************************
257 * Cryptographic Engines and Security Accelerator (CESA) 242 * Cryptographic Engines and Security Accelerator (CESA)
258 ****************************************************************************/ 243 ****************************************************************************/
@@ -454,7 +439,7 @@ DT_MACHINE_START(DOVE_DT, "Marvell Dove (Flattened Device Tree)")
454 .map_io = dove_map_io, 439 .map_io = dove_map_io,
455 .init_early = dove_init_early, 440 .init_early = dove_init_early,
456 .init_irq = orion_dt_init_irq, 441 .init_irq = orion_dt_init_irq,
457 .timer = &dove_timer, 442 .init_time = dove_timer_init,
458 .init_machine = dove_dt_init, 443 .init_machine = dove_dt_init,
459 .restart = dove_restart, 444 .restart = dove_restart,
460 .dt_compat = dove_dt_board_compat, 445 .dt_compat = dove_dt_board_compat,