ARM: 6635/2: Configure reference clock for Versatile Express timers
authorPawel Moll <pawel.moll@arm.com>
Tue, 25 Jan 2011 14:53:03 +0000 (15:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 25 Jan 2011 16:18:33 +0000 (16:18 +0000)
commitbaaece224570a935210a59257b5d9073e99843ea
tree1b0af1903ce4a58122473cca2d128ae1f56726c0
parente5310f611d17ed4e92e0d4e46fd9f6fb40e66df3
ARM: 6635/2: Configure reference clock for Versatile Express timers

Timers on Versatile Express mainboard are used as system clock/event
sources. Driver assumes that they are clocked with 1MHz signal.
Old V2M firmware apparently configured it by default, but on newer
boards one can observe that "sleep 1" command takes over 30 seconds
to finish, as the timers are fed with 32kHz instead...

This patch performs required magic and also removes code clearing
timer's control registers, as exactly the same operations are
performed by the timer driver few jiffies later.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/hardware/sp810.h
arch/arm/mach-vexpress/v2m.c