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:
parent
de82f2f4cb
commit
97dff5bccb
4 changed files with 12 additions and 5 deletions
|
@ -5,7 +5,7 @@ config AUDIO_DMIC_NRFX_PDM
|
|||
bool "nRF PDM nrfx driver"
|
||||
default y
|
||||
depends on DT_HAS_NORDIC_NRF_PDM_ENABLED
|
||||
select NRFX_PDM
|
||||
select NRFX_PDM0 if HAS_HW_NRF_PDM0
|
||||
select PINCTRL
|
||||
help
|
||||
Enable support for nrfx PDM driver for nRF MCU series.
|
||||
|
|
|
@ -162,8 +162,12 @@ config NRFX_NVMC
|
|||
|| $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF91_FLASH_CONTROLLER))
|
||||
|
||||
config NRFX_PDM
|
||||
bool "PDM driver"
|
||||
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PDM))
|
||||
bool
|
||||
|
||||
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
|
||||
bool "POWER driver"
|
||||
|
|
|
@ -212,6 +212,9 @@
|
|||
#ifdef CONFIG_NRFX_PDM
|
||||
#define NRFX_PDM_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_PDM0
|
||||
#define NRFX_PDM0_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_PDM_LOG
|
||||
#define NRFX_PDM_CONFIG_LOG_ENABLED 1
|
||||
#endif
|
||||
|
|
|
@ -126,8 +126,8 @@ config HAS_HW_NRF_NVMC_PE
|
|||
config HAS_HW_NRF_OSCILLATORS
|
||||
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_OSCILLATORS))
|
||||
|
||||
config HAS_HW_NRF_PDM
|
||||
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_PDM))
|
||||
config HAS_HW_NRF_PDM0
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,pdm0,$(DT_COMPAT_NORDIC_NRF_PDM))
|
||||
|
||||
config HAS_HW_NRF_POWER
|
||||
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_POWER))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue