diff options
Diffstat (limited to 'arch/arm/mach-mx3/mx31ads.c')
-rw-r--r-- | arch/arm/mach-mx3/mx31ads.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-mx3/mx31ads.c b/arch/arm/mach-mx3/mx31ads.c index 7e89bdc23a9f..eba3e0cd4283 100644 --- a/arch/arm/mach-mx3/mx31ads.c +++ b/arch/arm/mach-mx3/mx31ads.c | |||
@@ -26,9 +26,11 @@ | |||
26 | #include <asm/hardware.h> | 26 | #include <asm/hardware.h> |
27 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
28 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
29 | #include <asm/mach/time.h> | ||
29 | #include <asm/memory.h> | 30 | #include <asm/memory.h> |
30 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
31 | #include <asm/arch/common.h> | 32 | #include <asm/arch/common.h> |
33 | #include <asm/arch/board-mx31ads.h> | ||
32 | 34 | ||
33 | /*! | 35 | /*! |
34 | * @file mx31ads.c | 36 | * @file mx31ads.c |
@@ -126,6 +128,16 @@ static void __init mxc_board_init(void) | |||
126 | mxc_init_extuart(); | 128 | mxc_init_extuart(); |
127 | } | 129 | } |
128 | 130 | ||
131 | static void __init mx31ads_timer_init(void) | ||
132 | { | ||
133 | mxc_clocks_init(26000000); | ||
134 | mxc_timer_init("ipg_clk.0"); | ||
135 | } | ||
136 | |||
137 | struct sys_timer mx31ads_timer = { | ||
138 | .init = mx31ads_timer_init, | ||
139 | }; | ||
140 | |||
129 | /* | 141 | /* |
130 | * The following uses standard kernel macros defined in arch.h in order to | 142 | * The following uses standard kernel macros defined in arch.h in order to |
131 | * initialize __mach_desc_MX31ADS data structure. | 143 | * initialize __mach_desc_MX31ADS data structure. |
@@ -138,5 +150,5 @@ MACHINE_START(MX31ADS, "Freescale MX31ADS") | |||
138 | .map_io = mx31ads_map_io, | 150 | .map_io = mx31ads_map_io, |
139 | .init_irq = mxc_init_irq, | 151 | .init_irq = mxc_init_irq, |
140 | .init_machine = mxc_board_init, | 152 | .init_machine = mxc_board_init, |
141 | .timer = &mxc_timer, | 153 | .timer = &mx31ads_timer, |
142 | MACHINE_END | 154 | MACHINE_END |