aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion/common.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-03-27 14:51:40 -0400
committerNicolas Pitre <nico@marvell.com>2008-03-27 14:51:40 -0400
commit2bac1de2031aa4cad88a437d4410ec289da4f7dc (patch)
tree1f9abbf6f3d428bbdcbfc93337e3e2e28e3d81c9 /arch/arm/mach-orion/common.c
parentabc0197d7a74e51a1581ce9971d7c2c0f2adadaf (diff)
plat-orion: share time handling code
Split off Orion time handling code into plat-orion/. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Reviewed-by: Tzachi Perelstein <tzachi@marvell.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-orion/common.c')
-rw-r--r--arch/arm/mach-orion/common.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-orion/common.c b/arch/arm/mach-orion/common.c
index a32fe8e108bc..86d7f7ccfae0 100644
--- a/arch/arm/mach-orion/common.c
+++ b/arch/arm/mach-orion/common.c
@@ -23,8 +23,11 @@
23#include <asm/timex.h> 23#include <asm/timex.h>
24#include <asm/mach/arch.h> 24#include <asm/mach/arch.h>
25#include <asm/mach/map.h> 25#include <asm/mach/map.h>
26#include <asm/mach/time.h>
26#include <asm/arch/hardware.h> 27#include <asm/arch/hardware.h>
28#include <asm/arch/orion.h>
27#include <asm/arch/platform.h> 29#include <asm/arch/platform.h>
30#include <asm/plat-orion/time.h>
28#include "common.h" 31#include "common.h"
29 32
30/***************************************************************************** 33/*****************************************************************************
@@ -296,6 +299,19 @@ void __init orion_sata_init(struct mv_sata_platform_data *sata_data)
296} 299}
297 300
298/***************************************************************************** 301/*****************************************************************************
302 * Time handling
303 ****************************************************************************/
304
305static void orion_timer_init(void)
306{
307 orion_time_init(IRQ_ORION_BRIDGE, ORION_TCLK);
308}
309
310struct sys_timer orion_timer = {
311 .init = orion_timer_init,
312};
313
314/*****************************************************************************
299 * General 315 * General
300 ****************************************************************************/ 316 ****************************************************************************/
301 317