Skip to content

OMAP3: PM: Smartreflex and voltage revamp

Thara Gopinath linux-omap 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest22 patches 20 repliesIn review
  2. v217 patches 7 repliesSuperseded
  3. v116 patches 44 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22OMAP3: PM: Adding hwmod data for Smartreflexarch/arm/mach-omap2/omap_hwmod_3xxx_data.c arch/arm/mach-omap2/smartreflex.h+168 -01 reply
2/22OMAP3: PM: Create list to keep track of various smartreflex instances.arch/arm/mach-omap2/smartreflex.c+76 -380 replies
3/22OMAP3: PM: Convert smartreflex driver into a platform driver using hwmods and omap-device layerarch/arm/mach-omap2/Makefile arch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h +1 more+278 -2141 reply
4/22OMAP3: PM: Move smartreflex autocompensation enable disable hooks to PM debugfs.arch/arm/mach-omap2/pm-debug.c arch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h+36 -841 reply
5/22OMAP3: PM: Remove OPP id dependency from smartreflex driverarch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h arch/arm/mach-omap2/sr_device.c+129 -1321 reply
6/22OMAP3: PM: Correcting API names in samrtreflex driver.arch/arm/mach-omap2/pm34xx.c arch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h+23 -230 replies
7/22OMAP3: PM: Smartreflex class related changes for smartreflex.carch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h+181 -1220 replies
8/22OMAP3: PM: Adding smartreflex class 3 driver.arch/arm/mach-omap2/Makefile arch/arm/mach-omap2/board-3430sdp.c arch/arm/mach-omap2/smartreflex-class3.c +2 more+79 -10 replies
9/22OMAP3: PM: Creating separate files for handling OMAP3 voltage related operations.arch/arm/mach-omap2/Makefile arch/arm/mach-omap2/board-3430sdp.c arch/arm/mach-omap2/pm.h +6 more+712 -6070 replies
10/22OMAP3: PM: Adding voltage table support in voltage driver.arch/arm/mach-omap2/omap_hwmod_3xxx_data.c arch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h +3 more+118 -791 reply
11/22OMAP3: PM: Removing VP1, VP2, SR1 and SR2 defintions.arch/arm/mach-omap2/pm34xx.c arch/arm/mach-omap2/smartreflex-class3.c arch/arm/mach-omap2/smartreflex.c +3 more+40 -430 replies
12/22OMAP3: PM: Minimizing the passing around of sr id in smartreflex.carch/arm/mach-omap2/smartreflex.c+13 -233 replies
13/22OMAP3: PM: Cleaning up of smartreflex header file.arch/arm/mach-omap2/smartreflex.h+55 -410 replies
14/22OMAP3: PM: Configurations for Smartreflex Class 2 and Smartreflex Class 3arch/arm/mach-omap2/smartreflex-class3.c arch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h+219 -551 reply
15/22OMAP3: PM: Support for enabling smartreflex autocompensation by default.arch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/sr_device.c+20 -11 reply
16/22OMAP3: PM: Correcting accessing of ERRCONFIG register in smartreflex.carch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h+17 -00 replies
17/22OMAP3: PM: Implement latest h/w recommendations for SR and VP registers and SR VP enable disable sequence.arch/arm/mach-omap2/smartreflex.c arch/arm/mach-omap2/smartreflex.h arch/arm/mach-omap2/voltage.c +1 more+142 -441 reply
18/22OMAP3: PM: Optional reset of voltage during Smartreflex disable.arch/arm/mach-omap2/pm34xx.c arch/arm/mach-omap2/smartreflex-class3.c arch/arm/mach-omap2/smartreflex.c +1 more+14 -93 replies
19/22OMAP3: PM: Disabling Smartreflex across both frequency and voltage scaling during DVFS.arch/arm/mach-omap2/resource34xx.c arch/arm/mach-omap2/resource34xx.h+10 -180 replies
20/22OMAP3: PM: VP force update method of voltage scalingarch/arm/mach-omap2/voltage.c arch/arm/mach-omap2/voltage.h+172 -62 replies
21/22OMAP3: PM: Enabling Smartreflex Class 3 driver by default in pm defconfigarch/arm/configs/omap3_pm_defconfig+1 -00 replies
22/22OMAP3: PM: Fix crash when enabling SmartReflex on non-supported OMAPs.arch/arm/mach-omap2/smartreflex.c+47 -460 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCHv3 00/22] OMAP3: PM: Smartreflex and voltage revamp

The main motivations behind this patch series are the following
1. Making smartreflex a platform driver with omap-device layer.
2. Separating voltage specific code from smartreflex.c and other locations and consolidating them into voltage.c and voltage.h.
3. Smartreflex module can have Class 1 Class 2 or Class 3 implementations depending on the PMIC in use. Making smartreflex.c capable of handling both the Class 2 and 3 implementaions and separating out class specific code into a separate class driver.
4. Remove dependencies on opp id in the smartreflex and voltage drivers
5. Implementating latest TI recommended register settings for Smartreflex and Voltage processor module as well as recommended sequences for enabling and disabling of Smartreflex and Voltage processor modules.
6. Implementing VP force update method of voltage scaling which is again TI hardware recommended.

What this patch series does not address are
1. Separating PMIC specific portions from smartreflex and voltage code.
2. OMAP3630 and OMP4 smartreflex support.

This patch series is based on Kevin's PM tree origin/pm-wip-opp branch and is dependent on the following patches not yet applied onto this branch.

        http://patchwork.kernel.org/patch/81504/
        http://patchwork.kernel.org/patch/81606/

This patch series has been tested on OMAP3430 SDP with basic power management tests including the dvfs scripts.

Thara Gopinath (22):
OMAP3: PM: Adding hwmod data for Smartreflex
OMAP3: PM: Create list to keep track of various smartreflex
instances.
OMAP3: PM: Convert smartreflex driver into a platform driver using
hwmods and omap-device layer
OMAP3: PM: Move smartreflex autocompensation enable disable hooks to
PM debugfs.
OMAP3: PM: Remove OPP id dependency from smartreflex driver
OMAP3: PM: Correcting API names in samrtreflex driver.
OMAP3: PM: Smartreflex class related changes for smartreflex.c
OMAP3: PM: Adding smartreflex class 3 driver.
OMAP3: PM: Creating separate files for handling OMAP3 voltage related
operations.
OMAP3: PM: Adding voltage table support in voltage driver.
OMAP3: PM: Removing VP1, VP2, SR1 and SR2 defintions.
OMAP3: PM: Minimizing the passing around of sr id in smartreflex.c
OMAP3: PM: Cleaning up of smartreflex header file.
OMAP3: PM: Configurations for Smartreflex Class 2 and Smartreflex
Class 3
OMAP3: PM: Support for enabling smartreflex autocompensation by
default.
OMAP3: PM: Correcting accessing of ERRCONFIG register in
smartreflex.c
OMAP3: PM: Implement latest h/w recommendations for SR and VP
registers and SR VP enable disable sequence.
OMAP3: PM: Optional reset of voltage during Smartreflex disable.
OMAP3: PM: Disabling Smartreflex across both frequency and voltage
scaling during DVFS.
OMAP3: PM: VP force update method of voltage scaling
OMAP3: PM: Enabling Smartreflex Class 3 driver by default in pm
defconfig
OMAP3: PM: Fix crash when enabling SmartReflex on non-supported
OMAPs.

 arch/arm/configs/omap3_pm_defconfig        |    1 +
 arch/arm/mach-omap2/Makefile               |    6 +-
 arch/arm/mach-omap2/board-3430sdp.c        |    5 +-
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |  134 +++
 arch/arm/mach-omap2/pm-debug.c             |    4 +-
 arch/arm/mach-omap2/pm.h                   |    7 -
 arch/arm/mach-omap2/pm34xx.c               |   95 +--
 arch/arm/mach-omap2/resource34xx.c         |   27 +-
 arch/arm/mach-omap2/resource34xx.h         |    1 -
 arch/arm/mach-omap2/smartreflex-class3.c   |   60 ++
 arch/arm/mach-omap2/smartreflex-class3.h   |   18 +
 arch/arm/mach-omap2/smartreflex.c          | 1302 ++++++++++------------------
 arch/arm/mach-omap2/smartreflex.h          |  350 ++++----
 arch/arm/mach-omap2/sr_device.c            |  152 ++++
 arch/arm/mach-omap2/voltage.c              |  940 ++++++++++++++++++++
 arch/arm/mach-omap2/voltage.h              |   99 +++
 arch/arm/plat-omap/Kconfig                 |   11 +-
 17 files changed, 2088 insertions(+), 1124 deletions(-)
 create mode 100644 arch/arm/mach-omap2/smartreflex-class3.c
 create mode 100644 arch/arm/mach-omap2/smartreflex-class3.h
 create mode 100644 arch/arm/mach-omap2/sr_device.c
 create mode 100644 arch/arm/mach-omap2/voltage.c
 create mode 100644 arch/arm/mach-omap2/voltage.h