summaryrefslogtreecommitdiff
path: root/arch/arm/mach-iop33x/setup.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2006-09-18 23:19:02 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-25 10:25:43 +0100
commit863753a81e4f863015be34900dc2ba3637622f34 (patch)
tree9843fbb5b8f972f488d056c3dd11de483064b27d /arch/arm/mach-iop33x/setup.c
parent48388b2a56ae5e0f1c422e84d536f31729469b17 (diff)
downloadlinux-next-863753a81e4f863015be34900dc2ba3637622f34.tar.gz
[ARM] 3823/1: iop3xx: switch iop32x/iop33x over to shared time code
Switch the iop32x and iop33x code over to the common time implementation, and remove the (nearly identical) iop32x and iop33x time implementations. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-iop33x/setup.c')
-rw-r--r--arch/arm/mach-iop33x/setup.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-iop33x/setup.c b/arch/arm/mach-iop33x/setup.c
index ad737d6582b5..7cf5015436f3 100644
--- a/arch/arm/mach-iop33x/setup.c
+++ b/arch/arm/mach-iop33x/setup.c
@@ -28,6 +28,7 @@
#include <asm/hardware.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
+#include <asm/mach/time.h>
#include <asm/hardware/iop3xx.h>
#define IOP331_UART_XTAL 33334000
@@ -118,9 +119,18 @@ void __init iop33x_init(void)
#ifdef CONFIG_ARCH_IOP33X
extern void iop331_init_irq(void);
-extern struct sys_timer iop331_timer;
#endif
+static void __init iop3xx_timer_init(void)
+{
+ iop3xx_init_time(IOP331_TICK_RATE);
+}
+
+struct sys_timer iop331_timer = {
+ .init = iop3xx_timer_init,
+ .offset = iop3xx_gettimeoffset,
+};
+
#if defined(CONFIG_ARCH_IQ80331)
MACHINE_START(IQ80331, "Intel IQ80331")
/* Maintainer: Intel Corp. */