Clocks on Barebox

Sascha Hauer s.hauer at pengutronix.de
Mon Jun 1 04:41:50 PDT 2015


Hi Andreas,

On Mon, Jun 01, 2015 at 10:12:55AM +0200, andreas.willig at rafi.de wrote:
> Hi all
> i just updated from 2014 to latest Barebox and hit the following problem:
> of_clk_init from clk.c:451 does not find any entries. matches is set to __clk_of_table start where compatible=0 and data=0,
> but from my thoughts the dt is ok on this point:

I have no idea currently. You are doing nothing obviously wrong.

> from arch/arm/mach-imx/clk-imx6.c are removed:
> static int imx6_ccm_probe()
> {
> - unsigned long ckil_rate = 32768;
> - unsigned long ckih_rate = 0;
> - unsigned long osc_rate = 24000000;
> - clks[dummy] = clk_fixed("dummy", 0);
> - clks[ckil] = clk_fixed("ckil", ckil_rate);
> - clks[ckih] = clk_fixed("ckih", ckih_rate);
> - clks[osc] = clk_fixed("osc", osc_rate);
> }

These are removed because they come from the OF clock providers now. For
this you need COMMON_CLK_OF_PROVIDER enabled, but this should be
selected by the imx6 support automatically though. Let me test this on
some hardware here. What barebox version do you use? master, next, or
the latest release?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list