clocksource: armada-370-xp: Use the reference clock on A375 SoC
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 4 Nov 2014 13:21:33 +0000 (10:21 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 26 Nov 2014 12:51:08 +0000 (13:51 +0100)
commit4a22d9c93af1f2b2c40354c4bc59fd007f33f05e
tree490a796cf43f6e08c474ff71df8023a47603f2ec
parent8067042ad9543b410b7dc355ec312c2b61979eec
clocksource: armada-370-xp: Use the reference clock on A375 SoC

The 25 MHz reference clock has better stability so its use is preferred over the
core clock.

This commit takes advantage of the already introduced Armada 375 devicetree
compatible string and adds a new timer initialization. If available, the timer
will use the reference clock (named as 'fixed'). Otherwise, it falls back to the
previous behavior.

Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Wim Van Sebroeck <wim@iguana.be>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Documentation/devicetree/bindings/timer/marvell,armada-370-xp-timer.txt
drivers/clocksource/time-armada-370-xp.c