power: Add device idle power management support

Add framework for device Idle Power Management(IPM)
for suspending devices based on device idle. This will
help in saving power even while system(CPU) is active.

The framework uses device_set_power_state() API set the
device power state accordingly based on the usage count.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This commit is contained in:
Ramakrishna Pallala 2019-02-28 13:07:58 +05:30 committed by Anas Nashif
commit 6b21e1b7a7
6 changed files with 423 additions and 4 deletions

View file

@ -11,6 +11,16 @@ config SYS_PM_DEBUG
help
Enable System Power Management debugging hooks.
config DEVICE_IDLE_PM
bool "Enable device Idle Power Management"
depends on DEVICE_POWER_MANAGEMENT
select POLL
help
Enable device Idle Power Management to save power.
With device Idle PM enabled, devices can be suspended or
resumed based on the device usage even while the CPU or
system is running.
source "subsys/power/policy/Kconfig"
module = SYS_PM