mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/5] OF: probe clock providers from DT
@ 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
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Sebastian Hesselbarth @ 2013-11-09 13:24 UTC (permalink / raw)
  To: Sebastian Hesselbarth; +Cc: barebox

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

 arch/arm/lib/barebox.lds.S        |  2 ++
 drivers/clk/clk-fixed.c           | 23 +++++++++++++++++++++++
 drivers/clk/clk.c                 | 37 +++++++++++++++++++++++++++++++++++++
 drivers/of/base.c                 |  1 +
 include/asm-generic/barebox.lds.h |  9 ++++++++-
 include/linux/clk.h               | 14 ++++++++++++++
 6 files changed, 85 insertions(+), 1 deletion(-)

---
Cc: barebox@lists.infradead.org
-- 
1.8.4.rc3


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-11-11  8:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-09 13:24 [PATCH 0/5] OF: probe clock providers from DT 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 ` [PATCH 0/5] OF: probe clock providers from DT Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox