aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop32x/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-iop32x/setup.c')
-rw-r--r--arch/arm/mach-iop32x/setup.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/arch/arm/mach-iop32x/setup.c b/arch/arm/mach-iop32x/setup.c
index 1a03b0b41baa..68de247a4cca 100644
--- a/arch/arm/mach-iop32x/setup.c
+++ b/arch/arm/mach-iop32x/setup.c
@@ -29,6 +29,7 @@
29#include <asm/hardware.h> 29#include <asm/hardware.h>
30#include <asm/mach-types.h> 30#include <asm/mach-types.h>
31#include <asm/mach/arch.h> 31#include <asm/mach/arch.h>
32#include <asm/mach/time.h>
32#include <asm/hardware/iop3xx.h> 33#include <asm/hardware/iop3xx.h>
33 34
34#define IOP321_UART_XTAL 1843200 35#define IOP321_UART_XTAL 1843200
@@ -67,16 +68,22 @@ void __init iop32x_init(void)
67 68
68#ifdef CONFIG_ARCH_IQ80321 69#ifdef CONFIG_ARCH_IQ80321
69extern void iq80321_map_io(void); 70extern void iq80321_map_io(void);
70extern struct sys_timer iop321_timer;
71extern void iop321_init_time(void);
72#endif 71#endif
73 72
74#ifdef CONFIG_ARCH_IQ31244 73#ifdef CONFIG_ARCH_IQ31244
75extern void iq31244_map_io(void); 74extern void iq31244_map_io(void);
76extern struct sys_timer iop321_timer;
77extern void iop321_init_time(void);
78#endif 75#endif
79 76
77static void __init iop3xx_timer_init(void)
78{
79 iop3xx_init_time(IOP321_TICK_RATE);
80}
81
82struct sys_timer iop321_timer = {
83 .init = iop3xx_timer_init,
84 .offset = iop3xx_gettimeoffset,
85};
86
80#if defined(CONFIG_ARCH_IQ80321) 87#if defined(CONFIG_ARCH_IQ80321)
81MACHINE_START(IQ80321, "Intel IQ80321") 88MACHINE_START(IQ80321, "Intel IQ80321")
82 /* Maintainer: Intel Corporation */ 89 /* Maintainer: Intel Corporation */