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:
Jerzy Kasenberg 2024-05-13 10:09:45 +02:00 committed by Alberto Escolar
commit f2e3d3f951
3 changed files with 1 additions and 2 deletions

View file

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