[PATCH V3] ARM: i.MX5: Allow DT clock providers

Fabio Estevam festevam at gmail.com
Fri Apr 19 00:17:44 EDT 2013


On Thu, Apr 18, 2013 at 1:14 PM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> On Thu, Apr 18, 2013 at 05:55:10PM +0200, Martin Fuzzey wrote:
>> Currently clock providers defined in the DT are not registered
>> on i.MX5 platforms since of_clk_init() is not called.
>>
>> This is not a problem for the SOC's own clocks, which are registered
>> in code,  but prevents the DT being used to define clocks for external
>> hardware.
>>
>> Fix this by calling of_clk_init() and actually using the DT to obtain
>> the 4 SOC fixed clocks.
>> These are already defined in the DT but were previously just used to
>> manually obtain the rate.
>>
>> Fall back to the old scheme for non DT platforms.
>>
>> Signed-off-by: Martin Fuzzey <mfuzzey at parkeon.com>

On a mx51evk:

Tested-by: Fabio Estevam <fabio.estevam at freescale.com>

> I just realized that this is useful for other i.MX aswell. How about
> renaming it to imx_obtain_fixed_clk() and move it to
> arch/arm/mach-imx/clk.c?

Exactly. I was about to make the same suggestion.



More information about the linux-arm-kernel mailing list