MIPS: Alchemy: RTC counter clocksource / clockevent support.
authorManuel Lauss <mano@roarinelk.homelinux.net>
Sun, 21 Dec 2008 08:26:23 +0000 (09:26 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 11 Jan 2009 09:57:27 +0000 (09:57 +0000)
commit0c694de12b54fa96b9555e07603f567906ce21c8
treec7528273c1d86069cb6e83bd2b36706f663f1eb2
parent779e7d41ad004946603da139da99ba775f74cb1c
MIPS: Alchemy: RTC counter clocksource / clockevent support.

Add support for the 32 kHz counter1 (RTC) as clocksource / clockevent
device.  As a nice side effect, this also enables use of the 'wait'
instruction for runtime idle power savings.

If the counters aren't enabled/working properly, fall back on the
cp0 counter clock code.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/Kconfig
arch/mips/alchemy/common/power.c
arch/mips/alchemy/common/setup.c
arch/mips/alchemy/common/time.c
arch/mips/kernel/cpu-probe.c