Skip to content

Commit f2e3d3f

Browse files
kasjeraescolar
authored andcommitted
soc: smartbond: Move PM_DEVICE dependency to soc
For DA1469x if PM config is selected PM_DEVICE must also be selected for GPIO to work when device enters/exists deep sleep. Previously GPIO and regulator drivers selected PM_DEVICE when PM was enabled. Now it is moved to SOC instead. PM_DEVICE selection in GPIO could result in circular dependency for mcux if MEMC_MCUX_FLEXSPI (which is already dependent on PM_DEVICE) was to be additionally dependent on GPIO. Signed-off-by: Jerzy Kasenberg <[email protected]>
1 parent 08cd15d commit f2e3d3f

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

drivers/gpio/Kconfig.smartbond

-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ config GPIO_SMARTBOND
55
bool "Renesas SmartBond(tm) GPIO driver"
66
default y
77
depends on DT_HAS_RENESAS_SMARTBOND_GPIO_ENABLED
8-
select PM_DEVICE if PM
98
help
109
Enable GPIO driver for Renesas SmartBond(tm) MCU family.

drivers/regulator/Kconfig.da1469x

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
config REGULATOR_DA1469X
55
bool "DA1469X regulators driver"
66
default y
7-
select PM_DEVICE if PM
87
depends on DT_HAS_RENESAS_SMARTBOND_REGULATOR_ENABLED
98
help
109
Enable support for the Smartbond DA1469x regulators.

soc/renesas/smartbond/da1469x/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ config SOC_SERIES_DA1469X
1313
select CLOCK_CONTROL
1414
select CLOCK_CONTROL_SMARTBOND
1515
select PLATFORM_SPECIFIC_INIT
16+
select PM_DEVICE if PM

0 commit comments

Comments
 (0)