Skip to content

Powerdomains: add OMAP2/3 powerdomain code and common OMAP type bitfield

Paul Walmsley linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5add OMAP chip type structure; clean up mach-omap2/id.carch/arm/mach-omap2/id.c include/asm-arm/arch-omap/cpu.h+150 -500 replies
2/5add base OMAP2/3 powerdomain codearch/arm/mach-omap2/Makefile arch/arm/mach-omap2/powerdomain.c arch/arm/plat-omap/Kconfig +1 more+1035 -10 replies
3/5add OMAP2/3 common powerdomainsarch/arm/mach-omap2/io.c arch/arm/mach-omap2/pm.c arch/arm/mach-omap2/powerdomains.h +1 more+155 -20 replies
4/5add OMAP2 powerdomainsarch/arm/mach-omap2/powerdomains.h arch/arm/mach-omap2/powerdomains24xx.h arch/arm/mach-omap2/prm-regbits-24xx.h+222 -40 replies
5/5add OMAP3 powerdomainsarch/arm/mach-omap2/powerdomains.h arch/arm/mach-omap2/powerdomains34xx.h arch/arm/mach-omap2/prcm-common.h +1 more+364 -70 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] Powerdomains: add OMAP2/3 powerdomain code and common OMAP type bitfield

Hi everyone,

This is the second version of the powerdomain patches. It:

. replaces omap_type_t typedef with struct omap_chip_id

. fixes 34xx bug in OMAP type detection code

. removes all EXPORT_SYMBOLs - these can be added back in if powerdomain
code needs to be used from loadable PM modules - the expectation is that it will only be used from PM code

. gets rid of all of the forward declarations in the powerdomain
dependency definitions - now uses powerdomain names

. creates _pwrdm_lookup() to avoid potential race in pwrdm_register()

. gets rid of tabs in comments

. cleans up some dead structure members in struct powerdomain

. adds IVA2 sleepdep for DSS, PER, USBHOST

. is refreshed against current git head (e015fc7)

This version is tested against 3430SDP ES2.1, and compile-tested with the N800 and 2430SDP configs. Size, diffstat have been updated below.

Thanks to Tony & Jouni for review and comments. More comments welcome,

- Paul

-------------------------

Hello,

this patch series adds a hardware control and monitoring interface for OMAP2/3 powerdomains. The interface is fully documented in the code.

The series also adds a common OMAP chip type detection bitfield for use with powerdomain and clockdomain structures; it is planned to expand its use to the clock framework in the future.

Powerdomain code tested on 3430SDP ES2.1; also boot-tested on N800.

Many people at Nokia and TI provided commentary and review during the development of the powerdomain patches. Particular help came from (in alphabetical order): Jouni Högander, Tony Lindgren, Sakari Poussa, Igor Stoppa, and Richard Woodruff.

---

text data bss dec hex filename

3265996  151704  100736 3518436  35afe4 vmlinux.3430sdp.orig
3269405  152552  100736 3522693  35c085 vmlinux.3430sdp

Paul Walmsley (5):
Subject: add OMAP3 powerdomains
Subject: add OMAP2 powerdomains
Subject: add OMAP2/3 common powerdomains
Subject: add base OMAP2/3 powerdomain code
Subject: add OMAP chip type global bitfield; clean up mach-omap2/id.c

 arch/arm/mach-omap2/Makefile            |    2
 arch/arm/mach-omap2/id.c                |  167 ++++--
 arch/arm/mach-omap2/io.c                |    5
 arch/arm/mach-omap2/pm.c                |    2
 arch/arm/mach-omap2/powerdomain.c       |  885 +++++++++++++++++++++++++++++++
 arch/arm/mach-omap2/powerdomains.h      |  187 +++++++
 arch/arm/mach-omap2/powerdomains24xx.h  |  200 +++++++
 arch/arm/mach-omap2/powerdomains34xx.h  |  327 +++++++++++
 arch/arm/mach-omap2/prcm-common.h       |    3
 arch/arm/mach-omap2/prm-regbits-24xx.h  |   12
 arch/arm/mach-omap2/prm-regbits-34xx.h  |   11
 arch/arm/mach-omap2/prm.h               |    3
 arch/arm/plat-omap/Kconfig              |   12
 include/asm-arm/arch-omap/cpu.h         |   33 +
 include/asm-arm/arch-omap/powerdomain.h |  137 +++++
 15 files changed, 1924 insertions(+), 62 deletions(-)
 create mode 100644 arch/arm/mach-omap2/powerdomain.c
 create mode 100644 arch/arm/mach-omap2/powerdomains.h
 create mode 100644 arch/arm/mach-omap2/powerdomains24xx.h
 create mode 100644 arch/arm/mach-omap2/powerdomains34xx.h
 create mode 100644 include/asm-arm/arch-omap/powerdomain.h

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html