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:
parent
cac170d2b9
commit
dd36592aa4
2 changed files with 7 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ menuconfig I2S_NRFX
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_NORDIC_NRF_I2S_ENABLED
|
depends on DT_HAS_NORDIC_NRF_I2S_ENABLED
|
||||||
select NRFX_I2S0 if HAS_HW_NRF_I2S0
|
select NRFX_I2S0 if HAS_HW_NRF_I2S0
|
||||||
|
select NRFX_I2S20 if HAS_HW_NRF_I2S20
|
||||||
select PINCTRL
|
select PINCTRL
|
||||||
help
|
help
|
||||||
Enable support for nrfx I2S driver for nRF MCU series.
|
Enable support for nrfx I2S driver for nRF MCU series.
|
||||||
|
|
|
||||||
|
|
@ -955,5 +955,10 @@ static const struct i2s_driver_api i2s_nrf_drv_api = {
|
||||||
POST_KERNEL, CONFIG_I2S_INIT_PRIORITY, \
|
POST_KERNEL, CONFIG_I2S_INIT_PRIORITY, \
|
||||||
&i2s_nrf_drv_api);
|
&i2s_nrf_drv_api);
|
||||||
|
|
||||||
/* Existing SoCs only have one I2S instance. */
|
#ifdef CONFIG_HAS_HW_NRF_I2S0
|
||||||
I2S_NRFX_DEVICE(0);
|
I2S_NRFX_DEVICE(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_HAS_HW_NRF_I2S20
|
||||||
|
I2S_NRFX_DEVICE(20);
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue