[PATCH 0/5] OF: probe clock providers from DT

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 11 03:30:17 EST 2013


Hi Sebastian,

On Sat, Nov 09, 2013 at 02:24:16PM +0100, Sebastian Hesselbarth wrote:
> This patch set brings automatic probing of DT clock providers to ARM
> barebox, similar to what we have in Linux kernel.
> 
> First, a new macro BAREBOX_CLK_TABLE for generic linker scripts is added,
> that will take all declared DT clock providers. That macro is then added
> to the ARM linker script.
> 
> Then, barebox compatible versions of of_clk_init and CLK_OF_DECLARE are
> added, that allow to parse and probe declared clock providers. The of_clk_init
> call is then put right after of_platform_populate in of_probe.
> 
> Finally, clk/fixed is declared as such a clock provider and can now be probed
> automatially for DT enabled ARM platforms.
> 
> Sebastian Hesselbarth (5):
>   asm-generic: add macro for BAREBOX_CLK_TABLE
>   ARM: lib: add BAREBOX_CLK_TABLE to linker script
>   clk: add of_clk_init and CLK_OF_DECLARE macro
>   OF: parse OF clock providers after populate
>   clk: fixed: add DT init function

I gave this a test on i.MX by adding an additional dummy clk to my dts
and it works as expected. Patches look good, so:

Applied, thanks

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