zephyr/drivers/spi/Kconfig.mcux_dspi
Tomasz Bursztyka d89e8e6a79 drivers/spi: Cleanup the Kconfig files
Split QMSI relevant part into its own file. Some config where using
prompt, some not: normalizing it by removing the prompt keyword where
relevant.

Reducing the file by using if/endif when relevant.

However, it still not fully clean default: cfg and default baudrate
should disappear. There is no default configuration to apply as long
as the controller is not configured to run from any part using spi API.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2018-04-04 19:02:35 +02:00

36 lines
869 B
Plaintext

# Kconfig - MCUXpresso SDK SPI
#
# Copyright (c) 2016, Freescale Semiconductor, Inc.
# Copyright (c) 2017, NXP
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig SPI_MCUX_DSPI
bool "MCUX SPI driver"
depends on HAS_MCUX
default n
help
Enable support for mcux spi driver.
if SPI_MCUX_DSPI
config SPI_MCUX_BUF_SIZE
int "Number of bytes in the local buffer"
default 16
help
The mcux driver requires that the RX and TX buffers are the same
length, however the Zephyr spi interface allows them to be different.
When they are different, the mcux shim driver uses a local buffer. This
option defines the size of the local buffer.
config SPI_MCUX_DUMMY_CHAR
hex "Dummy character"
default 0x00
range 0x00 0xff
help
This option configures what value to send when the TX buffer length is
less than the RX buffer length.
endif # SPI_MCUX_DSPI