Browse Source

soc: adi: max32: Add dependency to idle cpu hook

To simplify usage add dependecy to MAX32_ON_ENTER_CPU_IDLE_HOOK
If CONFIG_PM not defined set to to y as current,
If CONFIG_PM defined not set it
If user set CONFIG_PM not need to disable
MAX32_ON_ENTER_CPU_IDLE_HOOK anymore

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
pull/50690/head
Sadik Ozer 11 months ago committed by Benjamin Cabé
parent
commit
4e858066bc
  1. 2
      soc/adi/max32/Kconfig

2
soc/adi/max32/Kconfig

@ -47,7 +47,7 @@ if SOC_FAMILY_MAX32 @@ -47,7 +47,7 @@ if SOC_FAMILY_MAX32
config MAX32_ON_ENTER_CPU_IDLE_HOOK
bool "CPU idle hook enable"
default y
default y if !PM
imply ARM_ON_ENTER_CPU_IDLE_HOOK
help
Enables a hook (z_arm_on_enter_cpu_idle()) that is called when

Loading…
Cancel
Save