mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 0/5] OF: probe clock providers from DT
Date: Mon, 11 Nov 2013 09:30:17 +0100	[thread overview]
Message-ID: <20131111083017.GE24559@pengutronix.de> (raw)
In-Reply-To: <1384003461-21039-1-git-send-email-sebastian.hesselbarth@gmail.com>

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2013-11-11  8:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-09 13:24 Sebastian Hesselbarth
2013-11-09 13:24 ` [PATCH 1/5] asm-generic: add macro for BAREBOX_CLK_TABLE Sebastian Hesselbarth
2013-11-09 13:24 ` [PATCH 2/5] ARM: lib: add BAREBOX_CLK_TABLE to linker script Sebastian Hesselbarth
2013-11-09 13:24 ` [PATCH 3/5] clk: add of_clk_init and CLK_OF_DECLARE macro Sebastian Hesselbarth
2013-11-09 13:24 ` [PATCH 4/5] OF: parse OF clock providers after populate Sebastian Hesselbarth
2013-11-09 13:24 ` [PATCH 5/5] clk: fixed: add DT init function Sebastian Hesselbarth
2013-11-11  8:30 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131111083017.GE24559@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=sebastian.hesselbarth@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox