drivers: pm_cpu_ops: Update Kconfig

* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-11 22:16:02 -05:00 committed by Carles Cufí
commit f835bc21f5

View file

@ -14,17 +14,14 @@ module = PM_CPU_OPS
module-str = pm_cpu_ops
source "subsys/logging/Kconfig.template.log_config"
DT_COMPAT_ARM_PSCI := arm,psci-0.2
config PM_CPU_OPS_HAS_DRIVER
bool
config PM_CPU_OPS_PSCI
bool "Support for the ARM Power State Coordination Interface (PSCI)"
depends on ARM64
depends on HAS_ARM_SMCCC
default y
depends on DT_HAS_ARM_PSCI_0_2_ENABLED
select PM_CPU_OPS_HAS_DRIVER
default $(dt_compat_enabled,$(DT_COMPAT_ARM_PSCI))
help
Say Y here if you want Zephyr to communicate with system firmware
implementing the PSCI specification for CPU-centric power