Skip to content

sh: share clock framework frequency table code

Magnus Damm linux-sh 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4sh: add pll_clk to sh7785arch/sh/kernel/cpu/sh4a/clock-sh7785.c+33 -140 replies
2/4sh: add shared clock framework frequency table codearch/sh/include/asm/clock.h arch/sh/kernel/cpu/clock.c+93 -00 replies
3/4sh: use shared frequency tables on sh7785arch/sh/kernel/cpu/sh4a/clock-sh7785.c+12 -640 replies
4/4sh: remove clk_ops->build_rate_table()arch/sh/include/asm/clock.h arch/sh/kernel/cpu/clock.c+0 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/04] sh: share clock framework frequency table code

sh: share clock framework frequency table code

[PATCH 01/04] sh: add pll_clk to sh7785
[PATCH 02/04] sh: add shared clock framework frequency table code [PATCH 03/04] sh: use shared frequency tables on sh7785 [PATCH 04/04] sh: remove clk_ops->build_rate_table()

These patches modify the clkfwk topic branch with the following:
- break out sh7785 pll_clk to remove multiplier from frqmr_recalc()
- implement clk_rate_table_build() and clk_rate_table_round()
- hook in the above functions in the sh7785 code, drop ->build_rate_table()
- remove ->build_rate_table() callback since recalc() can be used instead

---

 arch/sh/include/asm/clock.h            |   19 ++++
 arch/sh/kernel/cpu/clock.c             |   77 +++++++++++++++++++
 arch/sh/kernel/cpu/sh4a/clock-sh7785.c |  125 +++++++++++---------------------
 3 files changed, 138 insertions(+), 83 deletions(-)