zephyr/subsys/power
Meng xianglin 79df2b032d power: allow external definition of core devices
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>
2020-09-09 21:21:45 -04:00
..
policy zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
CMakeLists.txt cmake: remove _if_kconfig() functions 2020-08-01 12:35:20 +02:00
Kconfig power: allow external definition of core devices 2020-09-09 21:21:45 -04:00
device.c power: allow external definition of core devices 2020-09-09 21:21:45 -04:00
device_pm.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pm_ctrl.c
power.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
reboot.c