modules: hal_nordic: align PDM configuration

Introduce instance 0, PDM0, following nrfx 3.7.0 update.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-09-30 16:47:00 +02:00 committed by Carles Cufí
commit 97dff5bccb
4 changed files with 12 additions and 5 deletions

View file

@ -5,7 +5,7 @@ config AUDIO_DMIC_NRFX_PDM
bool "nRF PDM nrfx driver" bool "nRF PDM nrfx driver"
default y default y
depends on DT_HAS_NORDIC_NRF_PDM_ENABLED depends on DT_HAS_NORDIC_NRF_PDM_ENABLED
select NRFX_PDM select NRFX_PDM0 if HAS_HW_NRF_PDM0
select PINCTRL select PINCTRL
help help
Enable support for nrfx PDM driver for nRF MCU series. Enable support for nrfx PDM driver for nRF MCU series.

View file

@ -162,8 +162,12 @@ config NRFX_NVMC
|| $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF91_FLASH_CONTROLLER)) || $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF91_FLASH_CONTROLLER))
config NRFX_PDM config NRFX_PDM
bool "PDM driver" bool
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PDM))
config NRFX_PDM0
bool "PDM0 driver instance"
depends on $(dt_nodelabel_has_compat,pdm0,$(DT_COMPAT_NORDIC_NRF_PDM))
select NRFX_PDM
config NRFX_POWER config NRFX_POWER
bool "POWER driver" bool "POWER driver"

View file

@ -212,6 +212,9 @@
#ifdef CONFIG_NRFX_PDM #ifdef CONFIG_NRFX_PDM
#define NRFX_PDM_ENABLED 1 #define NRFX_PDM_ENABLED 1
#endif #endif
#ifdef CONFIG_NRFX_PDM0
#define NRFX_PDM0_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PDM_LOG #ifdef CONFIG_NRFX_PDM_LOG
#define NRFX_PDM_CONFIG_LOG_ENABLED 1 #define NRFX_PDM_CONFIG_LOG_ENABLED 1
#endif #endif

View file

@ -126,8 +126,8 @@ config HAS_HW_NRF_NVMC_PE
config HAS_HW_NRF_OSCILLATORS config HAS_HW_NRF_OSCILLATORS
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_OSCILLATORS)) def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_OSCILLATORS))
config HAS_HW_NRF_PDM config HAS_HW_NRF_PDM0
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_PDM)) def_bool $(dt_nodelabel_enabled_with_compat,pdm0,$(DT_COMPAT_NORDIC_NRF_PDM))
config HAS_HW_NRF_POWER config HAS_HW_NRF_POWER
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_POWER)) def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_POWER))