diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-05 22:06:01 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-09-21 14:51:23 -0400 |
commit | 57e6fe7b888e17f814bd35b7700ded51aa9a6a83 (patch) | |
tree | d5d733675b5a6e7985814e572e129b4c3b94a754 /arch/arm/mach-omap2/Makefile | |
parent | b30a3f6257ed2105259b404d419b4964e363928c (diff) |
OMAP2+: PM: initial runtime PM core support
Implement the new runtime PM framework as a thin layer on top of the
omap_device API. OMAP specific runtime PM methods are registered with
the as custom methods on the platform_bus.
In order to determine if a device is an omap_device, its parent device
is checked. All omap_devices have a new 'omap_device_parent_ device
as their parent device, so checking for this parent is used to check
for valid omap_devices. If a device is an omap_device, then the
appropriate omap_device functions are called for it. If not, only the
generic runtime PM functions are called.
Device driver's ->runtime_idle() hook is called when the runtime PM
usecount reaches zero for that device. Driver's ->runtime_suspend()
hooks are called just before the device is disabled (via
omap_device_idle()), and device driver ->runtime_resume() hooks are
called just after device has been enabled (via omap_device_enable().)
OMAP4 build support from Rajendra Nayak <rnayak@ti.com>.
OMAP2 build support from Charulatha V <charu@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Charulatha V <charu@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/Makefile')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 88d3a1e920f5..b48ca6039d83 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -49,14 +49,18 @@ obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o | |||
49 | # Power Management | 49 | # Power Management |
50 | ifeq ($(CONFIG_PM),y) | 50 | ifeq ($(CONFIG_PM),y) |
51 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o | 51 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o |
52 | obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o | 52 | obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o pm_bus.o |
53 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o | 53 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o pm_bus.o |
54 | obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o | 54 | obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o pm_bus.o |
55 | obj-$(CONFIG_PM_DEBUG) += pm-debug.o | 55 | obj-$(CONFIG_PM_DEBUG) += pm-debug.o |
56 | 56 | ||
57 | AFLAGS_sleep24xx.o :=-Wa,-march=armv6 | 57 | AFLAGS_sleep24xx.o :=-Wa,-march=armv6 |
58 | AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a | 58 | AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a |
59 | 59 | ||
60 | ifeq ($(CONFIG_PM_VERBOSE),y) | ||
61 | CFLAGS_pm_bus.o += -DDEBUG | ||
62 | endif | ||
63 | |||
60 | endif | 64 | endif |
61 | 65 | ||
62 | # PRCM | 66 | # PRCM |