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 <jerzy.kasenberg@codecoup.pl>
This commit is contained in:
parent
08cd15d5b0
commit
f2e3d3f951
3 changed files with 1 additions and 2 deletions
|
@ -5,6 +5,5 @@ config GPIO_SMARTBOND
|
||||||
bool "Renesas SmartBond(tm) GPIO driver"
|
bool "Renesas SmartBond(tm) GPIO driver"
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_RENESAS_SMARTBOND_GPIO_ENABLED
|
depends on DT_HAS_RENESAS_SMARTBOND_GPIO_ENABLED
|
||||||
select PM_DEVICE if PM
|
|
||||||
help
|
help
|
||||||
Enable GPIO driver for Renesas SmartBond(tm) MCU family.
|
Enable GPIO driver for Renesas SmartBond(tm) MCU family.
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
config REGULATOR_DA1469X
|
config REGULATOR_DA1469X
|
||||||
bool "DA1469X regulators driver"
|
bool "DA1469X regulators driver"
|
||||||
default y
|
default y
|
||||||
select PM_DEVICE if PM
|
|
||||||
depends on DT_HAS_RENESAS_SMARTBOND_REGULATOR_ENABLED
|
depends on DT_HAS_RENESAS_SMARTBOND_REGULATOR_ENABLED
|
||||||
help
|
help
|
||||||
Enable support for the Smartbond DA1469x regulators.
|
Enable support for the Smartbond DA1469x regulators.
|
||||||
|
|
|
@ -13,3 +13,4 @@ config SOC_SERIES_DA1469X
|
||||||
select CLOCK_CONTROL
|
select CLOCK_CONTROL
|
||||||
select CLOCK_CONTROL_SMARTBOND
|
select CLOCK_CONTROL_SMARTBOND
|
||||||
select PLATFORM_SPECIFIC_INIT
|
select PLATFORM_SPECIFIC_INIT
|
||||||
|
select PM_DEVICE if PM
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue