]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP3: control/PM: move padconf save code to mach-omap2/control.c
authorPaul Walmsley <paul@pwsan.com>
Wed, 22 Dec 2010 04:05:16 +0000 (21:05 -0700)
committerPaul Walmsley <paul@pwsan.com>
Wed, 22 Dec 2010 04:05:16 +0000 (21:05 -0700)
commitc6b47810f44e18ed4baf73eef05d113f03f734e3
tree266074fe2cf349b8402db948a69b2822d5763b0e
parenta222609a7cbd072d5da80c0bd99d6098ee5c69a0
OMAP3: control/PM: move padconf save code to mach-omap2/control.c

Move the padconf save code from pm34xx.c to the System Control Module
code in mach-omap2/control.c.  This is part of the general push to
move direct register access from middle-layer core code to low-level
core code, so the middle-layer code can be abstracted to work on
multiple platforms and cleaned up.

In the medium-to-long term, this code should be called by the mux
layer code, not the PM idle code.  This is because, according to the
TRM, saving the padconf only needs to be done when the padconf
changes[1].

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tony Lindgren <tony@atomide.com>
Tested-by: Rajendra Nayak <rnayak@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
1. OMAP34xx Multimedia Device Silicon Revision 3.1.x [Rev. ZH] [SWPU222H]
   Section 4.11.4 "Device Off-Mode Sequences"
arch/arm/mach-omap2/control.c
arch/arm/mach-omap2/control.h
arch/arm/mach-omap2/pm34xx.c
arch/arm/plat-omap/include/plat/prcm.h