Skip to content

Commit dc52ec7

Browse files
axelnxpkartben
authored andcommitted
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 <[email protected]>
1 parent 0ecaef0 commit dc52ec7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

soc/nxp/rw/Kconfig.defconfig

+3-6
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,13 @@ if PM
6161
# For PM mode 3 we change this config to get better accuracy
6262
# when using the iKHz RTC clock as system clock.
6363
config SYS_CLOCK_TICKS_PER_SEC
64-
default 1000
65-
depends on $(dt_nodelabel_enabled,standby)
64+
default 1000 if "$(dt_nodelabel_enabled,standby)"
6665

6766
# Enable PM_DEVICE by default if STANDBY mode is enabled
6867
# as we use the TURN_OFF and TURN_ON actions to recover
6968
# from Standby mode (PM Mode 3)
7069
config PM_DEVICE
71-
default y
72-
depends on "$(dt_nodelabel_enabled,standby)"
70+
default y if "$(dt_nodelabel_enabled,standby)"
7371

7472
# Enable PM_POLICY_DEVICE_CONSTRAINTS by default when doing PM_DEVICE.
7573
# This will allow support of device power states.
@@ -79,8 +77,7 @@ config PM_POLICY_DEVICE_CONSTRAINTS
7977
# Enable the counter if STANDBY mode is enabled
8078
# RTC counter is the wakeup source from STANDBY mode
8179
config COUNTER
82-
default y
83-
depends on "$(dt_nodelabel_enabled,standby)"
80+
default y if "$(dt_nodelabel_enabled,standby)"
8481

8582
config MCUX_OS_TIMER_PM_POWERED_OFF
8683
default y

0 commit comments

Comments
 (0)