drivers: i2s: i2s_nrfx: Add support for new instance

Add support for new I2S 20 instance.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
This commit is contained in:
Adam Kondraciuk 2023-08-24 15:50:55 +02:00 committed by Carles Cufí
parent cac170d2b9
commit dd36592aa4
2 changed files with 7 additions and 1 deletions

View file

@ -6,6 +6,7 @@ menuconfig I2S_NRFX
default y
depends on DT_HAS_NORDIC_NRF_I2S_ENABLED
select NRFX_I2S0 if HAS_HW_NRF_I2S0
select NRFX_I2S20 if HAS_HW_NRF_I2S20
select PINCTRL
help
Enable support for nrfx I2S driver for nRF MCU series.

View file

@ -955,5 +955,10 @@ static const struct i2s_driver_api i2s_nrf_drv_api = {
POST_KERNEL, CONFIG_I2S_INIT_PRIORITY, \
&i2s_nrf_drv_api);
/* Existing SoCs only have one I2S instance. */
#ifdef CONFIG_HAS_HW_NRF_I2S0
I2S_NRFX_DEVICE(0);
#endif
#ifdef CONFIG_HAS_HW_NRF_I2S20
I2S_NRFX_DEVICE(20);
#endif