Skip to content

RFC arm: omap2+: hwmod: Allow hwmods to share same modulemode register filed

Archit Taneja linux-arm-kernel linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest2 patches 2 repliesIn review

Changes in v2 from the cover letter

- The OMAP4 PRCM hwmod flag to show that this hwmod is shared was found redundant, and therefore, removed.
- Some of the struct names are shortened, and members are named more appropriately.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: OMAP2+: hwmod: Add refcounting for modulemode shared by multiple hwmodsarch/arm/mach-omap2/omap_hwmod.c arch/arm/mach-omap2/omap_hwmod.h+133 -282 replies
1/2arm: omap2+: hwmod: Add refcounting for modulemode shared by multiple hwmodsarch/arm/mach-omap2/omap_hwmod.c arch/arm/mach-omap2/omap_hwmod.h+153 -270 replies
2/2ARM: OMAP5: hwmod data: Make DSS hwmods share MODULEMODE fieldsarch/arm/mach-omap2/omap_hwmod_54xx_data.c+33 -130 replies
2/2arm: omap5 hwmod data: Example: Make DSS hwmods share MODULEMODE fieldsarch/arm/mach-omap2/omap_hwmod_54xx_data.c+27 -130 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC v2 0/2] arm: omap2+: hwmod: Allow hwmods to share same modulemode register filed

IP blocks within a clock domain generally come with their own CM_X_CLKCTRL registers, each having it's own MODULEMODE field to manage the module. This is not the case for DSS, though. DSS contains contains sub modules, each of which are represented by hwmods, but DSS itself has only one register CM_DSS_DSS_CLKCTRL.

Add a way to allow multiple hwmods to share the same MODULEMODE fiels. This means that MODULEMODE operation should be disabled only when the last hwmod using it is disabled.

Changes in v2:

- The OMAP4 PRCM hwmod flag to show that this hwmod is shared was found redundant, and therefore, removed.
- Some of the struct names are shortened, and members are named more appropriately.

Archit Taneja (2):
arm: omap2+: hwmod: Add refcounting for modulemode shared by multiple
hwmods
arm: omap5 hwmod data: Example: Make DSS hwmods share MODULEMODE
fields

 arch/arm/mach-omap2/omap_hwmod.c           | 145 +++++++++++++++++++++++++----
 arch/arm/mach-omap2/omap_hwmod.h           |  35 +++++--
 arch/arm/mach-omap2/omap_hwmod_54xx_data.c |  40 +++++---
 3 files changed, 180 insertions(+), 40 deletions(-)
Signature · 1 line
1.9.1