[PATCH v3 2/4] ARM: imx: add initial support for MVF600

Shawn Guo shawn.guo at linaro.org
Fri May 17 09:54:46 EDT 2013


On Fri, May 17, 2013 at 03:17:31PM +0200, Arnd Bergmann wrote:
> Can't we move the driver to drivers/clk and have it initialized through
> of_clk_init() without representing all clocks in the DT?
> 
> For all I can tell, CLK_OF_DECLARE() requires only the clock provider
> to be described in DT, but not the actual clocks.

Clock provider is actually a "clk".  For fixed rate clock example,
of_fixed_factor_clk_setup() firstly parses DT to get all the
necessary data and then calls clk_register_fixed_factor() to register
the clk to framework, lastly calls of_clk_add_provider() to register the
clk as a provider.

Shawn




More information about the linux-arm-kernel mailing list