mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-14 17:34:22 +00:00
Adds a shim layer around the mcux dspi driver to adapt it to the Zephyr spi interface. Unlike the existing k64 spi driver, this driver can be used for other Kinetis SoCs that contain the dspi module. Jira: ZEP-1374 Change-Id: I9417c1513565dfcc47ccda098492f60e840f4f84 Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
37 lines
855 B
Plaintext
37 lines
855 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
|
|
bool
|
|
prompt "MCUX SPI driver"
|
|
depends on SPI && HAS_MCUX
|
|
default n
|
|
help
|
|
Enable support for mcux spi driver.
|
|
|
|
if SPI_MCUX
|
|
|
|
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
|