PM_DEVICE is not attached to system managed device power management. It is a very common use case targets with device runtime power management that don't want system device power management enabled. We introduce a new symbol (PM_DEVICE_SYSTEM_MANAGED) to explicit control whether or not system device power management should be globally enabled. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
23 lines
482 B
C
23 lines
482 B
C
/*
|
|
* Copyright (c) 2024 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_SUBSYS_PM_DEVICE_SYSTEM_MANAGED_H_
|
|
#define ZEPHYR_SUBSYS_PM_DEVICE_SYSTEM_MANAGED_H_
|
|
|
|
#ifdef CONFIG_PM_DEVICE_SYSTEM_MANAGED
|
|
|
|
bool pm_suspend_devices(void);
|
|
void pm_resume_devices(void);
|
|
|
|
#else
|
|
|
|
bool pm_resume_devices(void) { return true; }
|
|
void pm_suspend_devices(void) {}
|
|
|
|
#endif /* CONFIG_PM_DEVICE_SYSTEM_MANAGED */
|
|
|
|
#endif /* ZEPHYR_SUBSYS_PM_DEVICE_SYSTEM_MANAGED_H_ */
|