zephyr/subsys/pm
Jordan Yates 5be8664e8d pm: device: add driver init helper
Adds a helper function for initializing devices into the expected power
state, through the devices `pm_device_action_cb_t`. This eliminates code
duplication between the init functions and the PM callback.

The expected device states in order of priority are:
 * No power applied to device, `OFF`
 * `zephyr,pm-device-runtime-auto` enabled, `SUSPEND`
 * Otherwise, `ACTIVE`

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2023-07-26 08:16:44 +00:00
..
CMakeLists.txt
device_runtime.c pm: mark pm_device_runtime_auto_enable as boot function 2023-03-31 14:31:52 -04:00
device.c pm: device: add driver init helper 2023-07-26 08:16:44 +00:00
Kconfig pm: introduce HAS_PM 2023-07-20 10:33:00 +00:00
pm_stats.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
pm_stats.h
pm.c pm: require pm_state_set/pm_exit_post_ops 2023-07-20 10:33:00 +00:00
policy.c pm: policy: Selectively compile on "zephyr,power-state" compatible 2023-06-02 18:56:39 -04:00
state.c pm: state: use DT_FOREACH_CHILD_SEP 2022-08-30 16:19:57 +02:00