linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/9] PM: Create the AVS class of drivers
@ 2012-03-19 16:12 jean.pihet
  2012-03-19 16:12 ` [PATCH 1/9] ARM: OMAP3+: voltage: export functions to plat/voltage.h jean.pihet
                   ` (12 more replies)
  0 siblings, 13 replies; 31+ messages in thread
From: jean.pihet @ 2012-03-19 16:12 UTC (permalink / raw)
  To: linux-omap, linux-arm-kernel, Kevin Hilman, Rafael J. Wysocki, LKML
  Cc: Jean Pihet

From: Jean Pihet <j-pihet@ti.com>

AVS is a power management technique which controls the operating
voltage of a device in order to optimize (i.e. reduce) its power
consumption. The voltage is adapted depending on static factors
(chip manufacturing process) and dynamic factors (temperature
depending performance).
AVS is also called SmartReflex on OMAP devices.

To that end, create the AVS framework in drivers/power/avs and
move the OMAP SmartReflex code to the new directory.

In preparation to the move of the OMAP code the following changes have been
made:
- split the include files into generic and platform specific code,
- fill in platform data from the device initialization code and pass
  it to the driver,
- create CONFIG_AVS* config options accordingly.

The platform integration data for SmartReflex is passed from hwmod
and the voltage layer to the driver using pdata.


Tested on OMAP3 Beagleboard using omap2plus_defconfig with the
CONFIG_POWER_AVS* options set.
Based on master branch of the l-o git tree (3.3.0-rc6) [1], commit
85244e0edd240da2004bb2ab7cbcbc67a336f20d.

[1] git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git


History:
v2: rework after the comments on MLs
 . Keep the OMAP Kconfig options in the arch dir (Rafael),
 . Move the shared header file from plat-omap to
    include/linux/power/ (Tony)

v1: initial revision
 

Jean Pihet (9):
  ARM: OMAP3+: voltage: export functions to plat/voltage.h
  ARM: OMAP2+: SmartReflex: move the driver specific macros in
    include/linux/power
  ARM: OMAP3+: SmartReflex: class drivers should use struct omap_sr *
  ARM: OMAP2+: smartreflex: Use the names from hwmod data instead of
    voltage domains.
  ARM: OMAP3: hwmod: rename the smartreflex entries
  ARM: OMAP2+: SmartReflex: introduce a busy loop condition test macro
  ARM: OMAP2+: SmartReflex: Use per-OPP data structure
  ARM: OMAP2+: SmartReflex: add POWER_AVS Kconfig options
  ARM: OMAP: SmartReflex: Move smartreflex driver to drivers/

 arch/arm/mach-omap2/Makefile               |    4 +-
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |   12 +-
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c |    3 +-
 arch/arm/mach-omap2/pm.h                   |    2 +-
 arch/arm/mach-omap2/smartreflex-class3.c   |   60 --
 arch/arm/mach-omap2/smartreflex.c          | 1165 ----------------------------
 arch/arm/mach-omap2/smartreflex.h          |  256 ------
 arch/arm/mach-omap2/sr_device.c            |   38 +-
 arch/arm/mach-omap2/voltage.h              |    1 -
 arch/arm/mach-omap2/vp.h                   |    2 -
 arch/arm/plat-omap/Kconfig                 |   30 +-
 arch/arm/plat-omap/include/plat/voltage.h  |    3 +
 drivers/power/Kconfig                      |    2 +
 drivers/power/Makefile                     |    2 +
 drivers/power/avs/Kconfig                  |   12 +
 drivers/power/avs/Makefile                 |    2 +
 drivers/power/avs/smartreflex-class3.c     |   61 ++
 drivers/power/avs/smartreflex.c            | 1118 ++++++++++++++++++++++++++
 drivers/power/avs/smartreflex.h            |  238 ++++++
 include/linux/power/smartreflex.h          |   97 +++
 20 files changed, 1590 insertions(+), 1518 deletions(-)
 delete mode 100644 arch/arm/mach-omap2/smartreflex-class3.c
 delete mode 100644 arch/arm/mach-omap2/smartreflex.c
 delete mode 100644 arch/arm/mach-omap2/smartreflex.h
 create mode 100644 drivers/power/avs/Kconfig
 create mode 100644 drivers/power/avs/Makefile
 create mode 100644 drivers/power/avs/smartreflex-class3.c
 create mode 100644 drivers/power/avs/smartreflex.c
 create mode 100644 drivers/power/avs/smartreflex.h
 create mode 100644 include/linux/power/smartreflex.h

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2012-04-19 17:06 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-19 16:12 [PATCH v2 0/9] PM: Create the AVS class of drivers jean.pihet
2012-03-19 16:12 ` [PATCH 1/9] ARM: OMAP3+: voltage: export functions to plat/voltage.h jean.pihet
2012-04-18 17:27   ` Kevin Hilman
2012-04-18 20:36     ` Jean Pihet
2012-03-19 16:12 ` [PATCH 2/9] ARM: OMAP2+: SmartReflex: move the driver specific macros in include/linux/power jean.pihet
2012-04-04 19:10   ` Trilok Soni
2012-04-04 19:41     ` Cousson, Benoit
2012-04-05  6:53       ` Trilok Soni
2012-04-05  8:59         ` Jean Pihet
2012-04-05  9:35           ` Trilok Soni
2012-04-19 13:54             ` Arnd Bergmann
2012-04-19 16:02               ` Jean Pihet
2012-04-19 17:06               ` Kevin Hilman
2012-03-19 16:12 ` [PATCH 3/9] ARM: OMAP3+: SmartReflex: class drivers should use struct omap_sr * jean.pihet
2012-03-19 16:12 ` [PATCH 4/9] ARM: OMAP2+: smartreflex: Use the names from hwmod data instead of voltage domains jean.pihet
2012-03-19 16:12 ` [PATCH 5/9] ARM: OMAP3: hwmod: rename the smartreflex entries jean.pihet
2012-04-18 17:33   ` Kevin Hilman
2012-04-18 20:41     ` Jean Pihet
2012-03-19 16:12 ` [PATCH 6/9] ARM: OMAP2+: SmartReflex: introduce a busy loop condition test macro jean.pihet
2012-03-19 16:12 ` [PATCH 7/9] ARM: OMAP2+: SmartReflex: Use per-OPP data structure jean.pihet
2012-04-18 18:21   ` Kevin Hilman
2012-04-18 20:52     ` Jean Pihet
2012-03-19 16:12 ` [PATCH 8/9] ARM: OMAP2+: SmartReflex: add POWER_AVS Kconfig options jean.pihet
2012-03-19 16:12 ` [PATCH 9/9] ARM: OMAP: SmartReflex: Move smartreflex driver to drivers/ jean.pihet
2012-04-18 18:17   ` Kevin Hilman
2012-04-03 11:14 ` [PATCH v2 0/9] PM: Create the AVS class of drivers Jean Pihet
2012-04-18  8:04 ` Jean Pihet
2012-04-19  0:08   ` Greg KH
2012-04-18 18:29 ` Kevin Hilman
2012-04-18 18:30 ` Kevin Hilman
2012-04-18 18:49   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).