diff options
| -rw-r--r-- | arch/arm/mach-mx3/mx31lite.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-mx3/mx31lite.c b/arch/arm/mach-mx3/mx31lite.c index ea23a8ec6850..1372c1a1fc3f 100644 --- a/arch/arm/mach-mx3/mx31lite.c +++ b/arch/arm/mach-mx3/mx31lite.c | |||
| @@ -26,6 +26,7 @@ | |||
| 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/mach/map.h> | 30 | #include <asm/mach/map.h> |
| 30 | #include <asm/arch/common.h> | 31 | #include <asm/arch/common.h> |
| 31 | #include <asm/page.h> | 32 | #include <asm/page.h> |
| @@ -79,6 +80,16 @@ static void __init mxc_board_init(void) | |||
| 79 | { | 80 | { |
| 80 | } | 81 | } |
| 81 | 82 | ||
| 83 | static void __init mx31lite_timer_init(void) | ||
| 84 | { | ||
| 85 | mxc_clocks_init(26000000); | ||
| 86 | mxc_timer_init("ipg_clk.0"); | ||
| 87 | } | ||
| 88 | |||
| 89 | struct sys_timer mx31lite_timer = { | ||
| 90 | .init = mx31lite_timer_init, | ||
| 91 | }; | ||
| 92 | |||
| 82 | /* | 93 | /* |
| 83 | * The following uses standard kernel macros defined in arch.h in order to | 94 | * The following uses standard kernel macros defined in arch.h in order to |
| 84 | * initialize __mach_desc_MX31LITE data structure. | 95 | * initialize __mach_desc_MX31LITE data structure. |
| @@ -92,5 +103,5 @@ MACHINE_START(MX31LITE, "LogicPD MX31 LITEKIT") | |||
| 92 | .map_io = mx31lite_map_io, | 103 | .map_io = mx31lite_map_io, |
| 93 | .init_irq = mxc_init_irq, | 104 | .init_irq = mxc_init_irq, |
| 94 | .init_machine = mxc_board_init, | 105 | .init_machine = mxc_board_init, |
| 95 | .timer = &mxc_timer, | 106 | .timer = &mx31lite_timer, |
| 96 | MACHINE_END | 107 | MACHINE_END |
