[PATCH 1/6] clocksource: sunxi: Add Allwinner A1X Timer Driver
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Nov 16 08:13:02 EST 2012
Dear Maxime Ripard,
On Thu, 15 Nov 2012 23:46:20 +0100, Maxime Ripard wrote:
> +#define TIMER_CLKSRC 24000000
You should rather add a DT node for this fixed rate clock, and pass a
clocks = <&fooclk> DT property to your timer DT node, and then in your
timer driver do an of_clk_get() + clk_get_rate() to get the frequency
of this.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the linux-arm-kernel
mailing list