Skip to content

RFC Split powerdomain framework into plat specfic/independent

Rajendra Nayak linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8OMAP: powerdomain: Move powerdomain.c from mach-omap2 to plat-omaparch/arm/mach-omap2/Makefile arch/arm/plat-omap/Makefile arch/arm/plat-omap/powerdomain.c+11 -111 reply
2/8OMAP: powerdomain: Infrastructure to put arch specific codearch/arm/mach-omap2/io.c arch/arm/plat-omap/include/plat/powerdomain.h arch/arm/plat-omap/powerdomain.c+32 -43 replies
3/8OMAP: powerdomain: Arch specific funcs for state controlarch/arm/mach-omap2/Makefile arch/arm/mach-omap2/io.c arch/arm/mach-omap2/powerdomains.h +3 more+157 -231 reply
4/8OMAP: powerdomain: Arch specific funcs for logic controlarch/arm/mach-omap2/powerdomains2xxx.c arch/arm/mach-omap2/powerdomains44xx.c arch/arm/plat-omap/powerdomain.c+88 -490 replies
5/8OMAP: powerdomain: Arch specific funcs for mem controlarch/arm/mach-omap2/Makefile arch/arm/mach-omap2/powerdomains.c arch/arm/mach-omap2/powerdomains.h +3 more+385 -2390 replies
6/8OMAP: PRM: split the prm accessor api funcs for omap2/3 and omap4arch/arm/mach-omap2/clockdomain.c arch/arm/mach-omap2/control.c arch/arm/mach-omap2/pm-debug.c +7 more+224 -1710 replies
7/8omap4: powerdomain: add context_offset fieldarch/arm/mach-omap2/powerdomains44xx.h arch/arm/plat-omap/include/plat/powerdomain.h+16 -00 replies
8/8omap4: powerdomain: Add pwrdm_clear_all_prev_pwrstarch/arm/mach-omap2/powerdomains44xx.c+14 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/8] Split powerdomain framework into plat specfic/independent

OMAP4 powerdomains have some inherent differences as compared to OMAP2/3 powerdomains, starting with register offsets being different to clubbing of multiple controls into one register and in some cases splitting of control into multiple registers.
There are also new features like lowpowerstatechange bits and features like HW SAR which are no longer present in the older form.

Supporting all these in the existing powerdomain framework would mean adding a lot of cpu_is_* checks which makes code unmaintainable going fwd.

Hence this RFC series is an attempt to split the existing powerdomain framework into platform independent part (which does error checking, usecounting et al) which can be reused across OMAP's and hook up platform specific functions to do low level programming which varies across OMAP's.

The series has a dependency on the following patch series
http://marc.info/?l=linux-omap&m=128146137929118&w=2
http://marc.info/?l=linux-omap&m=128464495603506&w=2

This series along with all the dependent series patches can be found here
git://gitorious.org/omap-pm/linux.git powerdomain-split

Rajendra Nayak (6):
OMAP: powerdomain: Move powerdomain.c from mach-omap2 to plat-omap
OMAP: powerdomain: Infrastructure to put arch specific code
OMAP: powerdomain: Arch specific funcs for state control
OMAP: powerdomain: Arch specific funcs for logic control
OMAP: powerdomain: Arch specific funcs for mem control
OMAP: PRM: split the prm accessor api funcs for omap2/3 and omap4

Santosh Shilimkar (2):
omap4: powerdomain: add context_offset field
omap4: powerdomain: Add pwrdm_clear_all_prev_pwrst

 arch/arm/mach-omap2/Makefile                     |   10 +-
 arch/arm/mach-omap2/clockdomain.c                |   16 +-
 arch/arm/mach-omap2/control.c                    |    8 +-
 arch/arm/mach-omap2/io.c                         |    5 +-
 arch/arm/mach-omap2/pm-debug.c                   |    4 +-
 arch/arm/mach-omap2/pm24xx.c                     |   48 ++--
 arch/arm/mach-omap2/pm34xx.c                     |   98 +++---
 arch/arm/mach-omap2/powerdomains.c               |  111 ++++++
 arch/arm/mach-omap2/powerdomains.h               |   13 +
 arch/arm/mach-omap2/powerdomains2xxx.c           |  212 ++++++++++++
 arch/arm/mach-omap2/powerdomains44xx.c           |  177 ++++++++++
 arch/arm/mach-omap2/powerdomains44xx.h           |   14 +
 arch/arm/mach-omap2/prcm.c                       |  123 +++++---
 arch/arm/mach-omap2/prm.h                        |   26 +-
 arch/arm/plat-omap/Makefile                      |    6 +-
 arch/arm/plat-omap/include/plat/powerdomain.h    |   24 ++-
 arch/arm/plat-omap/include/plat/prcm.h           |   12 +-
 arch/arm/{mach-omap2 => plat-omap}/powerdomain.c |  399 ++++++----------------
 18 files changed, 868 insertions(+), 438 deletions(-)
 create mode 100644 arch/arm/mach-omap2/powerdomains.c
 create mode 100644 arch/arm/mach-omap2/powerdomains2xxx.c
 create mode 100644 arch/arm/mach-omap2/powerdomains44xx.c
 rename arch/arm/{mach-omap2 => plat-omap}/powerdomain.c (70%)