Skip to content

OMAP2/3 clock: revise module idlest handling

Paul Walmsley linux-omap 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5OMAP2 PRCM: fix CM_IDLEST bits incorrectly marked as 2xxx-commonarch/arm/mach-omap2/cm-regbits-24xx.h+2 -20 replies
2/5OMAP2/3 PRCM: convert IDLEST register bit macros to use the _SHIFT/_MASK stylearch/arm/mach-omap2/clock.c arch/arm/mach-omap2/cm-regbits-24xx.h arch/arm/mach-omap2/cm-regbits-34xx.h +2 more+262 -1310 replies
3/5OMAP2/3 clock: encode target IDLEST bits and clean omap2_clk_wait_ready()arch/arm/mach-omap2/clock24xx.h arch/arm/mach-omap2/clock34xx.h arch/arm/mach-omap2/cm-regbits-24xx.h +1 more+448 -1920 replies
4/5OMAP2/3 clock: convert omap2_clk_wait_ready() to use the idlest_bit fieldarch/arm/mach-omap2/clock.c+23 -730 replies
5/5OMAP3 clock: add wait for USIM module to become activearch/arm/mach-omap2/clock34xx.h arch/arm/mach-omap2/cm-regbits-34xx.h+11 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] OMAP2/3 clock: revise module idlest handling

Hello,

This series revises module idlest handling to use a new "idlest_bit" field defined in struct clk for the CM_IDLEST mask. After doing so, the omap2_clk_wait_ready() function can be cleaned up. More details of the new arrangement are in the individual patch comments.

Applies on top of the "OMAP2/3 clock: encode prcm_mod for each struct clk" series.

Boot-tested on 2430SDP and 3430SDP. Comments welcome.

- Paul

---

text data bss dec hex filename

3098504  137136  150888 3386528  33aca0 vmlinux.3430sdp.orig
3098472  137712  150888 3387072  33aec0 vmlinux.3430sdp
 arch/arm/mach-omap2/clock.c             |   96 ++-----
 arch/arm/mach-omap2/clock24xx.h         |  194 +++++++++-----
 arch/arm/mach-omap2/clock34xx.h         |  445 ++++++++++++++++++++++---------
 arch/arm/mach-omap2/cm-regbits-24xx.h   |   81 ++++--
 arch/arm/mach-omap2/cm-regbits-34xx.h   |  101 +++++--
 arch/arm/mach-omap2/pm-debug.c          |   15 +
 arch/arm/mach-omap2/prcm-common.h       |  198 +++++++++-----
 arch/arm/plat-omap/include/mach/clock.h |    8 -
 8 files changed, 741 insertions(+), 397 deletions(-)