Browse Source

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>
pull/72623/head
Jerzy Kasenberg 1 year ago committed by Alberto Escolar
parent
commit
f2e3d3f951
  1. 1
      drivers/gpio/Kconfig.smartbond
  2. 1
      drivers/regulator/Kconfig.da1469x
  3. 1
      soc/renesas/smartbond/da1469x/Kconfig

1
drivers/gpio/Kconfig.smartbond

@ -5,6 +5,5 @@ config GPIO_SMARTBOND @@ -5,6 +5,5 @@ config GPIO_SMARTBOND
bool "Renesas SmartBond(tm) GPIO driver"
default y
depends on DT_HAS_RENESAS_SMARTBOND_GPIO_ENABLED
select PM_DEVICE if PM
help
Enable GPIO driver for Renesas SmartBond(tm) MCU family.

1
drivers/regulator/Kconfig.da1469x

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
config REGULATOR_DA1469X
bool "DA1469X regulators driver"
default y
select PM_DEVICE if PM
depends on DT_HAS_RENESAS_SMARTBOND_REGULATOR_ENABLED
help
Enable support for the Smartbond DA1469x regulators.

1
soc/renesas/smartbond/da1469x/Kconfig

@ -13,3 +13,4 @@ config SOC_SERIES_DA1469X @@ -13,3 +13,4 @@ config SOC_SERIES_DA1469X
select CLOCK_CONTROL
select CLOCK_CONTROL_SMARTBOND
select PLATFORM_SPECIFIC_INIT
select PM_DEVICE if PM

Loading…
Cancel
Save