zephyr/drivers/i2s/Kconfig.mcux_flexcomm
Kumar Gala 324ee290f8 drivers: i2s: Update drivers to use devicetree Kconfig symbol
Update I2S drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-25 15:03:11 -05:00

23 lines
438 B
Plaintext

# Copyright (c) 2020, NXP
# SPDX-License-Identifier: Apache-2.0
config I2S_MCUX_FLEXCOMM
bool "MCUX FLEXCOMM I2S driver"
default y
depends on DT_HAS_NXP_LPC_I2S_ENABLED
select DMA
help
Enable support for mcux flexcomm i2s driver.
if I2S_MCUX_FLEXCOMM
config I2S_MCUX_FLEXCOMM_RX_BLOCK_COUNT
int "RX queue length"
default 4
config I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT
int "TX queue length"
default 4
endif # I2S_MCUX_FLEXCOMM