Skip to content

Commit 97dff5b

Browse files
gmarullcarlescufi
authored andcommitted
modules: hal_nordic: align PDM configuration
Introduce instance 0, PDM0, following nrfx 3.7.0 update. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent de82f2f commit 97dff5b

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

drivers/audio/Kconfig.dmic_pdm_nrfx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ config AUDIO_DMIC_NRFX_PDM
55
bool "nRF PDM nrfx driver"
66
default y
77
depends on DT_HAS_NORDIC_NRF_PDM_ENABLED
8-
select NRFX_PDM
8+
select NRFX_PDM0 if HAS_HW_NRF_PDM0
99
select PINCTRL
1010
help
1111
Enable support for nrfx PDM driver for nRF MCU series.

modules/hal_nordic/nrfx/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,12 @@ config NRFX_NVMC
162162
|| $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF91_FLASH_CONTROLLER))
163163

164164
config NRFX_PDM
165-
bool "PDM driver"
166-
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PDM))
165+
bool
166+
167+
config NRFX_PDM0
168+
bool "PDM0 driver instance"
169+
depends on $(dt_nodelabel_has_compat,pdm0,$(DT_COMPAT_NORDIC_NRF_PDM))
170+
select NRFX_PDM
167171

168172
config NRFX_POWER
169173
bool "POWER driver"

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@
212212
#ifdef CONFIG_NRFX_PDM
213213
#define NRFX_PDM_ENABLED 1
214214
#endif
215+
#ifdef CONFIG_NRFX_PDM0
216+
#define NRFX_PDM0_ENABLED 1
217+
#endif
215218
#ifdef CONFIG_NRFX_PDM_LOG
216219
#define NRFX_PDM_CONFIG_LOG_ENABLED 1
217220
#endif

soc/nordic/common/Kconfig.peripherals

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ config HAS_HW_NRF_NVMC_PE
126126
config HAS_HW_NRF_OSCILLATORS
127127
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_OSCILLATORS))
128128

129-
config HAS_HW_NRF_PDM
130-
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_PDM))
129+
config HAS_HW_NRF_PDM0
130+
def_bool $(dt_nodelabel_enabled_with_compat,pdm0,$(DT_COMPAT_NORDIC_NRF_PDM))
131131

132132
config HAS_HW_NRF_POWER
133133
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_POWER))

0 commit comments

Comments
 (0)