Skip to content

Commit 6609cdd

Browse files
[nrf fromlist] modules: hal_nordic: Add new PDM instances
New PDM, some present on nRF54L15 FP1, instances have been added. Modified condfiguration file for nRF5340, which now requires PDM0 instance. Signed-off-by: Michał Stasiak <[email protected]>
1 parent 97212bf commit 6609cdd

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

modules/hal_nordic/nrfx/Kconfig

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,21 @@ config NRFX_NVMC
167167

168168
config NRFX_PDM
169169
bool "PDM driver"
170-
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PDM))
170+
171+
config NRFX_PDM0
172+
bool "PDM0 driver instance"
173+
depends on $(dt_nodelabel_has_compat,pdm0,$(DT_COMPAT_NORDIC_NRF_PDM))
174+
select NRFX_PDM
175+
176+
config NRFX_PDM20
177+
bool "PDM20 driver instance"
178+
depends on $(dt_nodelabel_has_compat,pdm20,$(DT_COMPAT_NORDIC_NRF_PDM))
179+
select NRFX_PDM
180+
181+
config NRFX_PDM21
182+
bool "PDM21 driver instance"
183+
depends on $(dt_nodelabel_has_compat,pdm21,$(DT_COMPAT_NORDIC_NRF_PDM))
184+
select NRFX_PDM
171185

172186
config NRFX_POWER
173187
bool "POWER driver"

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@
215215
#ifdef CONFIG_NRFX_PDM_LOG
216216
#define NRFX_PDM_CONFIG_LOG_ENABLED 1
217217
#endif
218+
#ifdef CONFIG_NRFX_PDM0
219+
#define NRFX_PDM0_ENABLED 1
220+
#endif
221+
#ifdef CONFIG_NRFX_PDM20
222+
#define NRFX_PDM20_ENABLED 1
223+
#endif
224+
#ifdef CONFIG_NRFX_PDM21
225+
#define NRFX_PDM21_ENABLED 1
226+
#endif
218227

219228
#ifdef CONFIG_NRFX_POWER
220229
#define NRFX_POWER_ENABLED 1

soc/nordic/common/Kconfig.peripherals

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ config HAS_HW_NRF_OSCILLATORS
131131
config HAS_HW_NRF_PDM
132132
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_PDM))
133133

134+
config HAS_HW_NRF_PDM20
135+
def_bool $(dt_nodelabel_enabled_with_compat,pdm20,$(DT_COMPAT_NORDIC_NRF_PDM))
136+
137+
config HAS_HW_NRF_PDM21
138+
def_bool $(dt_nodelabel_enabled_with_compat,pdm21,$(DT_COMPAT_NORDIC_NRF_PDM))
139+
134140
config HAS_HW_NRF_POWER
135141
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_POWER))
136142

soc/nordic/validate_base_addresses.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ CHECK_DT_REG(nfct, NRF_NFCT);
222222
CHECK_DT_REG(nrf_mpu, NRF_MPU);
223223
CHECK_DT_REG(oscillators, NRF_OSCILLATORS);
224224
CHECK_DT_REG(pdm0, NRF_PDM0);
225+
CHECK_DT_REG(pdm20, NRF_PDM20);
226+
CHECK_DT_REG(pdm21, NRF_PDM21);
225227
CHECK_DT_REG(power, NRF_POWER);
226228
CHECK_DT_REG(ppi, NRF_PPI);
227229
CHECK_DT_REG(pwm0, NRF_PWM0);

0 commit comments

Comments
 (0)