From: Thomas Petazzoni <hidden> Date: 2012-11-16 13:13:02
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