Subject: [PATCH 1/6] clocksource: sunxi: Add Allwinner A1X Timer Driver

From: [email-masked] (Thomas Petazzoni)
Date: Fri, 16 Nov 2012 14:13:02 +0100

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