Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] 3617/1: ep93xx: fix slightly incorrect timer tick rate

Patch from Lennert Buytenhek

The tick rate of timers 1-3 isn't exactly 508 kHz as some parts of the
relevant documentation claim, but more like 508.469 kHz (14.7456 MHz
divided by 29.)

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Lennert Buytenhek and committed by
Russell King
a059e33c f869afab

+1 -1
+1 -1
arch/arm/mach-ep93xx/core.c
··· 125 125 { 126 126 /* Enable periodic HZ timer. */ 127 127 __raw_writel(0x48, EP93XX_TIMER1_CONTROL); 128 - __raw_writel((508000 / HZ) - 1, EP93XX_TIMER1_LOAD); 128 + __raw_writel((508469 / HZ) - 1, EP93XX_TIMER1_LOAD); 129 129 __raw_writel(0xc8, EP93XX_TIMER1_CONTROL); 130 130 131 131 /* Enable lost jiffy timer. */