Skip to content

Commit

Permalink
soc: smartbond: Move PM_DEVICE dependency to soc
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kasjer committed May 13, 2024
1 parent 961959f commit b5c68dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion drivers/gpio/Kconfig.smartbond
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 0 additions & 1 deletion drivers/regulator/Kconfig.da1469x
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions soc/renesas/smartbond/da1469x/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
config SOC_SERIES_DA1469X
bool
select SOC_FAMILY_RENESAS_SMARTBOND
select PM_DEVICE if PM
help
Renesas SmartBond(tm) DA1469x series MCU

Expand Down

0 comments on commit b5c68dd

Please sign in to comment.