From 0d0931a92e370ef417f2c587e0a709d0b4a0586a Mon Sep 17 00:00:00 2001 From: Markinus Date: Sun, 5 Sep 2010 01:01:53 +0200 Subject: [PATCH] htcleo: fixed timer problems Thx. to Cotulla --- arch/arm/mach-msm/timer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c index 25a1af47..6063cadb 100644 --- a/arch/arm/mach-msm/timer.c +++ b/arch/arm/mach-msm/timer.c @@ -682,7 +682,13 @@ static void __init msm_timer_init(void) { int i; int res; - + +#ifdef CONFIG_MACH_HTCLEO + printk("$$$ msm_timer_init $$$\n"); + printk(" 1DIV = %08X\n", readl(MSM_GPT_BASE + 0x20)); + writel(3, MSM_GPT_BASE + 0x20); + printk(" 2DIV = %08X\n", readl(MSM_GPT_BASE + 0x20)); +#endif for (i = 0; i < ARRAY_SIZE(msm_clocks); i++) { struct msm_clock *clock = &msm_clocks[i]; struct clock_event_device *ce = &clock->clockevent;