2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-01-28 09:47:04 +08:00
|
|
|
mainmenu "SPI Loopback Test"
|
|
|
|
|
2018-10-10 22:52:59 +08:00
|
|
|
source "Kconfig.zephyr"
|
2018-01-28 09:47:04 +08:00
|
|
|
|
|
|
|
config SPI_LOOPBACK_DRV_NAME
|
|
|
|
string "SPI device name to use for test"
|
|
|
|
|
|
|
|
config SPI_LOOPBACK_CS_GPIO
|
|
|
|
bool "SPI port CS pin is controlled via a GPIO port during test"
|
|
|
|
depends on GPIO
|
|
|
|
|
|
|
|
config SPI_LOOPBACK_CS_CTRL_GPIO_DRV_NAME
|
2018-08-14 22:19:20 +08:00
|
|
|
string "The GPIO port which is used to control CS"
|
2018-01-28 09:47:04 +08:00
|
|
|
depends on SPI_LOOPBACK_CS_GPIO
|
|
|
|
default "GPIO_0"
|
|
|
|
|
|
|
|
config SPI_LOOPBACK_CS_CTRL_GPIO_PIN
|
|
|
|
int "The GPIO PIN which is used to act as a CS pin"
|
|
|
|
depends on SPI_LOOPBACK_CS_GPIO
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config SPI_LOOPBACK_SLAVE_NUMBER
|
|
|
|
int "Slave number from 0 to host controller slave limit"
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config SPI_LOOPBACK_SLOW_FREQ
|
|
|
|
int "The frequency in Hz to use when testing in slow mode"
|
|
|
|
default 500000
|
|
|
|
|
|
|
|
config SPI_LOOPBACK_FAST_FREQ
|
|
|
|
int "The frequency in Hz to use when testing in fast mode"
|
|
|
|
default 16000000
|
2019-11-02 02:57:58 +08:00
|
|
|
|
|
|
|
config SPI_LOOPBACK_MODE_LOOP
|
|
|
|
bool "Configure the SPI in LOOP mode, so that no extra wiring is needed"
|