Skip to content

rework OPP layer to handle device-based OPPs

Kevin Hilman linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12OMAP2/3: hwmod: remove '_hwmod' suffix from namesarch/arm/mach-omap2/omap_hwmod_2420_data.c arch/arm/mach-omap2/omap_hwmod_2430_data.c arch/arm/mach-omap2/omap_hwmod_3xxx_data.c+10 -101 reply
2/12OMAP: hwmod: add class for DSP hwmodsarch/arm/mach-omap2/omap_hwmod_common_data.c arch/arm/mach-omap2/omap_hwmod_common_data.h+4 -00 replies
3/12OMAP3: hwmod: add data for OMAP3 IVA2arch/arm/mach-omap2/omap_hwmod_3xxx_data.c+41 -00 replies
4/12OMAP: omap_device: ensure hwmod tracks attached omap_device pointerarch/arm/plat-omap/omap_device.c+6 -20 replies
5/12OMAP: create omap_devices for MPU, DSP, L3arch/arm/mach-omap2/devices.c arch/arm/mach-omap2/io.c arch/arm/plat-omap/include/plat/common.h+70 -46 replies
6/12OMAP: voltage: use device_initcall()arch/arm/mach-omap2/voltage.c+1 -10 replies
7/12OMAP: SR: use device_initcall()arch/arm/mach-omap2/sr_device.c+1 -10 replies
8/12OMAP2: OPP: update API to be device-basedarch/arm/mach-omap2/cpufreq34xx.c arch/arm/plat-omap/include/plat/opp.h arch/arm/plat-omap/opp.c+261 -3720 replies
9/12OMAP3: CPUfreq: update to device-based OPP APIarch/arm/plat-omap/cpu-omap.c+8 -40 replies
10/12OMAP: voltage: update to new device-based OPP APIarch/arm/mach-omap2/voltage.c+5 -50 replies
11/12OMAP: SRF: update to new device-based OPP APIarch/arm/mach-omap2/resource34xx.c+60 -350 replies
12/12OMAP: SRF: must be initialized before allowing constraints to be setarch/arm/plat-omap/omap-pm-srf.c+7 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/12] rework OPP layer to handle device-based OPPs

The current OPP layer is based on a unique identifier (OPP_MPU, OPP_DSP, OPP_L3) which is not terribly portable or scalable for future devices.

Since we'd also like to be able to manage OPPs for any device (as recently agreed upon during an OMAP PM meeting in TI Bangalore[1]), this patch changes the OPP API to be device-based instead of unique-ID based. Essentially, this means passing a 'struct device' instead of a unique ID to determine which set of OPPs to be used.

The main part of this patch is PATCH 08/12 where the OPP API changes
are made. The earlier parts of the series are prep work for this and
the remaining parts are updating users of the OPP API.

Applies on top of current PM branch.

[1] http://omappedia.org/wiki/Proceedings_of_the_PM_SW_Workshop_Jun_2010

Kevin Hilman (12):
OMAP2/3: hwmod: remove '_hwmod' suffix from names
OMAP: hwmod: add class for DSP hwmods
OMAP3: hwmod: add data for OMAP3 IVA2
OMAP: omap_device: ensure hwmod tracks attached omap_device pointer
OMAP: create omap_devices for MPU, DSP, L3
OMAP: voltage: use device_initcall()
OMAP: SR: use device_initcall()
OMAP2: OPP: update API to be device-based
OMAP3: CPUfreq: update to device-based OPP API
OMAP: voltage: update to new device-based OPP API
OMAP: SRF: update to new device-based OPP API
OMAP: SRF: must be initialized before allowing constraints to be set

 arch/arm/mach-omap2/cpufreq34xx.c            |  180 +++++--------
 arch/arm/mach-omap2/devices.c                |    2 +
 arch/arm/mach-omap2/io.c                     |   68 ++++-
 arch/arm/mach-omap2/omap_hwmod_2420_data.c   |    6 +-
 arch/arm/mach-omap2/omap_hwmod_2430_data.c   |    6 +-
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c   |   49 +++-
 arch/arm/mach-omap2/omap_hwmod_common_data.c |    3 +
 arch/arm/mach-omap2/omap_hwmod_common_data.h |    1 +
 arch/arm/mach-omap2/resource34xx.c           |   95 ++++---
 arch/arm/mach-omap2/sr_device.c              |    2 +-
 arch/arm/mach-omap2/voltage.c                |   12 +-
 arch/arm/plat-omap/cpu-omap.c                |   12 +-
 arch/arm/plat-omap/include/plat/common.h     |    4 +
 arch/arm/plat-omap/include/plat/opp.h        |   57 ++---
 arch/arm/plat-omap/omap-pm-srf.c             |    7 +
 arch/arm/plat-omap/omap_device.c             |    8 +-
 arch/arm/plat-omap/opp.c                     |  396 +++++++++++---------------
 17 files changed, 474 insertions(+), 434 deletions(-)