From 4e858066bccde27d90efe04dec7e32ff127f6887 Mon Sep 17 00:00:00 2001 From: Sadik Ozer Date: Tue, 20 Aug 2024 16:09:56 +0300 Subject: [PATCH] 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 --- soc/adi/max32/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/adi/max32/Kconfig b/soc/adi/max32/Kconfig index 7f5e4324733..a1627e31131 100644 --- a/soc/adi/max32/Kconfig +++ b/soc/adi/max32/Kconfig @@ -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