clocksource: sirf: Remove hard-coded clock rate
authorYanchang Li <yl22@csr.com>
Tue, 11 Nov 2014 12:42:52 +0000 (20:42 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 19 Nov 2014 10:19:20 +0000 (11:19 +0100)
commitef89af1f4380b922bdadd31c9e49829a022f55ae
tree3854ceb317c69a6e7583b029aeb0a5b72e01c039
parent867f667fb9c6734e06cc24e96fc7f06a7e772084
clocksource: sirf: Remove hard-coded clock rate

The customers may want to adjust the whole PLL and dividers according to
different user scenerios, and this causes the parent clock of sirf clocksource
not be divided exactly by the current hard-coded 1MHz clock rate.
This patch removes the hard-coded rate and makes the clocksource driver more
adaptive to the external changes.

Signed-off-by: Yanchang Li <yl22@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-marco.c