From dc52ec7d321e1417360e7b5ac339de6344f8714c Mon Sep 17 00:00:00 2001 From: Axel Le Bourhis Date: Tue, 29 Apr 2025 17:36:41 +0200 Subject: [PATCH] soc: nxp: rw: fix wrong dependency on kconfigs Use `defaut y if` instead of `depends on` as the related Kconfig should be user configurable even when standby mode is not used. Signed-off-by: Axel Le Bourhis --- soc/nxp/rw/Kconfig.defconfig | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/soc/nxp/rw/Kconfig.defconfig b/soc/nxp/rw/Kconfig.defconfig index d2da02597fd..9a3699d6f43 100644 --- a/soc/nxp/rw/Kconfig.defconfig +++ b/soc/nxp/rw/Kconfig.defconfig @@ -61,15 +61,13 @@ if PM # For PM mode 3 we change this config to get better accuracy # when using the iKHz RTC clock as system clock. config SYS_CLOCK_TICKS_PER_SEC - default 1000 - depends on $(dt_nodelabel_enabled,standby) + default 1000 if "$(dt_nodelabel_enabled,standby)" # Enable PM_DEVICE by default if STANDBY mode is enabled # as we use the TURN_OFF and TURN_ON actions to recover # from Standby mode (PM Mode 3) config PM_DEVICE - default y - depends on "$(dt_nodelabel_enabled,standby)" + default y if "$(dt_nodelabel_enabled,standby)" # Enable PM_POLICY_DEVICE_CONSTRAINTS by default when doing PM_DEVICE. # This will allow support of device power states. @@ -79,8 +77,7 @@ config PM_POLICY_DEVICE_CONSTRAINTS # Enable the counter if STANDBY mode is enabled # RTC counter is the wakeup source from STANDBY mode config COUNTER - default y - depends on "$(dt_nodelabel_enabled,standby)" + default y if "$(dt_nodelabel_enabled,standby)" config MCUX_OS_TIMER_PM_POWERED_OFF default y