Skip to content

Commit 264d812

Browse files
pabigotcarlescufi
authored andcommitted
power: fix Kconfig defaults
Some SoCs try to select power management in a way that can bypass the dependency on system clock. Make the selection conditional on the dependency. Signed-off-by: Peter Bigot <[email protected]>
1 parent 19cb44b commit 264d812

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

soc/arm/microchip_mec/mec1501/Kconfig.defconfig.mec1501hsz

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ config SPI_XEC_QMSPI
6262
if SOC_POWER_MANAGEMENT
6363

6464
config PM
65-
default y
65+
default y if SYS_CLOCK_EXISTS
6666

6767
config PM_SLEEP_STATES
6868
default y

soc/arm/nordic_nrf/Kconfig.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ config ARCH_HAS_CUSTOM_BUSY_WAIT
2828
default y
2929

3030
config PM
31-
default y
31+
default y if SYS_CLOCK_EXISTS
3232

3333
config BUILD_OUTPUT_HEX
3434
default y

0 commit comments

Comments
 (0)