79df2b032d
When try to enable CONFIG_DEVICE_POWER_MANAGEMENT for a board, the #error directive in subsys/power/device.c requires that "MAX_PM_DEVICE" and "core_devices[]" must be defined exactly in that file, or a compile error will come up. For flexibility, this patch move "PM_MAX_DEVICE" to Kconfig and define a weak version of "z_mp_core_devices[]", so any board or SOC can define these varibles in their own module. Signed-off-by: Meng xianglin <xianglinx.meng@intel.com> |
||
---|---|---|
.. | ||
policy | ||
CMakeLists.txt | ||
Kconfig | ||
device.c | ||
device_pm.c | ||
pm_ctrl.c | ||
power.c | ||
reboot.c |