Skip to content

OMAP2/3 clock: encode prcm_mod for each struct clk

Paul Walmsley linux-omap 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 of 11 patches 0 repliesNew
  2. v12 of 3 patches 2 repliesSuperseded

10 of 11 patches are in this archive. The cover letter announces 11.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11OMAP3 clock: split mcbspX_src_fck from mcbspX_fckarch/arm/mach-omap2/clock34xx.h+66 -160 replies
2/11OMAP2/3 clock: shorten some variable names in clock.c for legibilityarch/arm/mach-omap2/clock.c+19 -200 replies
3/11OMAP2 clock: add clk.prcm_mod field; annotate OMAP2xxx clocksarch/arm/mach-omap2/clock24xx.h arch/arm/plat-omap/include/mach/clock.h+136 -00 replies
4/11OMAP3 clock: add "prcm_mod" field to OMAP3xxx clocksarch/arm/mach-omap2/clock34xx.h+172 -00 replies
5/11OMAP2/3 clock: add _omap2_clk_{read,write}_reg()arch/arm/mach-omap2/clock.c+38 -00 replies
6/11OMAP2/3 clock: use symbolic constants in omap2_clk_wait_ready()arch/arm/mach-omap2/clock.c+14 -50 replies
7/11OMAP2/3 clock: use prcm_mod field in omap2_clk_wait_ready()arch/arm/mach-omap2/clock.c+9 -80 replies
8/11OMAP2/3 clock: convert omap2_wait_clock_ready() to use clk.prcm_modarch/arm/mach-omap2/clock.c arch/arm/mach-omap2/clock.h arch/arm/mach-omap2/clock24xx.c+11 -150 replies
9/11OMAP2/3 clock: remove omap2_get_clksel()arch/arm/mach-omap2/clock.c+12 -340 replies
10/11OMAP2/3 clock: simplify omap2_clksel_get_src_field()arch/arm/mach-omap2/clock.c+12 -190 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/11] OMAP2/3 clock: encode prcm_mod for each struct clk

This second revision splits up the final patch into several pieces and fixes a bug previously introduced in the clksel code.

---

Add a new field, prcm_mod, to the OMAP2/3 struct clk. Major effects of this change include:

- the removal of the register rewriting code for OMAP2xxx clock framework,

- the resolution of gcc and sparse warnings for the clock code,

- the removal of many __force void __iomem * casts in the clock tree,

- and the reduction of the register address field size in struct clk by two bytes per clk.

This series applies on top of the second version of the "OMAP2/3 clock: revise DPLL bypass handling in clock tree" series. This series is a prerequisite for the IDLEST handling revision patches, following shortly.

Boot-tested on 3430SDP and N800.

---

size:
text data bss dec hex filename

3443344  158160  105504 3707008  389080 vmlinux.3430sdp.orig
3443440  157712  105504 3706656  388f20 vmlinux.3430sdp
 arch/arm/mach-omap2/clock.c             |  229 +++++------
 arch/arm/mach-omap2/clock.h             |    3 
 arch/arm/mach-omap2/clock24xx.c         |   58 ---
 arch/arm/mach-omap2/clock24xx.h         |  454 +++++++++++++--------
 arch/arm/mach-omap2/clock34xx.c         |   27 +
 arch/arm/mach-omap2/clock34xx.h         |  671 ++++++++++++++++++++-----------
 arch/arm/mach-omap2/cm.h                |    3 
 arch/arm/plat-omap/common.c             |    1 
 arch/arm/plat-omap/include/mach/clock.h |   25 +
 9 files changed, 875 insertions(+), 596 deletions(-)