diff options
Diffstat (limited to 'arch/arm/mach-omap2/timer-gp.c')
| -rw-r--r-- | arch/arm/mach-omap2/timer-gp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c index 4e48e786bec7..7b7c2683ae7b 100644 --- a/arch/arm/mach-omap2/timer-gp.c +++ b/arch/arm/mach-omap2/timer-gp.c | |||
| @@ -42,6 +42,8 @@ | |||
| 42 | 42 | ||
| 43 | #include "timer-gp.h" | 43 | #include "timer-gp.h" |
| 44 | 44 | ||
| 45 | #include <plat/common.h> | ||
| 46 | |||
| 45 | /* MAX_GPTIMER_ID: number of GPTIMERs on the chip */ | 47 | /* MAX_GPTIMER_ID: number of GPTIMERs on the chip */ |
| 46 | #define MAX_GPTIMER_ID 12 | 48 | #define MAX_GPTIMER_ID 12 |
| 47 | 49 | ||
| @@ -176,10 +178,14 @@ static void __init omap2_gp_clockevent_init(void) | |||
| 176 | /* | 178 | /* |
| 177 | * When 32k-timer is enabled, don't use GPTimer for clocksource | 179 | * When 32k-timer is enabled, don't use GPTimer for clocksource |
| 178 | * instead, just leave default clocksource which uses the 32k | 180 | * instead, just leave default clocksource which uses the 32k |
| 179 | * sync counter. See clocksource setup in see plat-omap/common.c. | 181 | * sync counter. See clocksource setup in plat-omap/counter_32k.c |
| 180 | */ | 182 | */ |
| 181 | 183 | ||
| 182 | static inline void __init omap2_gp_clocksource_init(void) {} | 184 | static void __init omap2_gp_clocksource_init(void) |
| 185 | { | ||
| 186 | omap_init_clocksource_32k(); | ||
| 187 | } | ||
| 188 | |||
| 183 | #else | 189 | #else |
| 184 | /* | 190 | /* |
| 185 | * clocksource | 191 | * clocksource |
