2015-08-21 12:57:49 +03:00
|
|
|
# Kconfig - SPI driver configuration options
|
|
|
|
|
|
|
|
#
|
2016-03-17 11:21:49 -07:00
|
|
|
# Copyright (c) 2015-2016 Intel Corporation
|
2015-08-21 12:57:49 +03:00
|
|
|
#
|
2017-01-18 17:01:01 -08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-08-21 12:57:49 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# SPI Drivers
|
|
|
|
#
|
|
|
|
menuconfig SPI
|
2017-06-21 09:16:25 +02:00
|
|
|
bool "SPI hardware bus support"
|
2015-08-21 12:57:49 +03:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable support for the SPI hardware bus.
|
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
if SPI
|
2016-09-16 15:24:19 +02:00
|
|
|
|
2018-01-29 22:12:50 +01:00
|
|
|
config SPI_ASYNC
|
|
|
|
bool "Enable Asynchronous call support"
|
|
|
|
default n
|
|
|
|
select POLL
|
|
|
|
help
|
|
|
|
This option enables the asynchronous API calls.
|
|
|
|
|
2017-06-28 12:35:07 +02:00
|
|
|
config SPI_SLAVE
|
|
|
|
bool "Enable Slave support [EXPERIMENTAL]"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables Driver SPI slave operations. Slave support depends
|
|
|
|
on the driver and the hardware it runs on.
|
|
|
|
|
2016-04-17 05:55:43 +08:00
|
|
|
config SPI_INIT_PRIORITY
|
|
|
|
int "Init priority"
|
|
|
|
default 70
|
|
|
|
help
|
|
|
|
Device driver initialization priority.
|
|
|
|
|
2016-05-07 19:15:28 -04:00
|
|
|
config SYS_LOG_SPI_LEVEL
|
2017-06-21 09:16:25 +02:00
|
|
|
int "SPI Driver Log level"
|
|
|
|
depends on SYS_LOG
|
2016-05-07 19:15:28 -04:00
|
|
|
default 0
|
|
|
|
range 0 4
|
2015-08-21 12:57:49 +03:00
|
|
|
help
|
2016-12-15 13:54:17 +01:00
|
|
|
Sets log level for SPI drivers.
|
2018-03-29 17:35:07 +02:00
|
|
|
|
2016-05-07 19:15:28 -04:00
|
|
|
Levels are:
|
2018-03-29 17:35:07 +02:00
|
|
|
|
|
|
|
- 0 OFF, do not write
|
|
|
|
|
|
|
|
- 1 ERROR, only write SYS_LOG_ERR
|
|
|
|
|
|
|
|
- 2 WARNING, write SYS_LOG_WRN in addition to previous level
|
|
|
|
|
|
|
|
- 3 INFO, write SYS_LOG_INF in addition to previous levels
|
|
|
|
|
|
|
|
- 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
|
2015-08-21 13:01:08 +03:00
|
|
|
|
2016-05-07 18:57:14 -04:00
|
|
|
config SPI_0
|
2017-06-21 09:16:25 +02:00
|
|
|
bool "SPI port 0"
|
2016-05-07 18:57:14 -04:00
|
|
|
default n
|
|
|
|
help
|
2016-08-17 14:51:18 +05:30
|
|
|
Enable SPI controller port 0.
|
2016-05-07 18:57:14 -04:00
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
if SPI_0
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_0_NAME
|
2017-06-21 09:16:25 +02:00
|
|
|
string "SPI port 0 device name"
|
|
|
|
depends on !HAS_DTS_SPI
|
2016-05-07 18:57:14 -04:00
|
|
|
default "SPI_0"
|
|
|
|
|
2017-06-28 12:35:07 +02:00
|
|
|
config SPI_0_OP_MODES
|
|
|
|
int "Port 0 supported operation modes (master/slave/both)"
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
help
|
|
|
|
This sets the supported operation modes at runtime, by the SPI
|
|
|
|
port 0, where:
|
|
|
|
1 is MASTER mode only (default)
|
|
|
|
2 is SLAVE mode only
|
|
|
|
3 is both modes are available.
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_0_IRQ_PRI
|
2017-06-21 09:16:25 +02:00
|
|
|
int "Port 0 interrupt priority"
|
2016-02-18 14:38:32 -05:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_0_CS_GPIO_PORT
|
2017-06-21 09:16:25 +02:00
|
|
|
string "The GPIO port which is used to control CS"
|
|
|
|
depends on SPI_CS_GPIO
|
2016-05-07 18:57:14 -04:00
|
|
|
default "GPIO_0"
|
2016-02-18 14:38:32 -05:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_0_CS_GPIO_PIN
|
2016-05-07 18:57:14 -04:00
|
|
|
int "The GPIO PIN which is used to act as a CS pin"
|
2017-06-21 09:16:25 +02:00
|
|
|
depends on SPI_CS_GPIO
|
2016-05-07 18:57:14 -04:00
|
|
|
default 0
|
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
endif # SPI_0
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_1
|
2017-06-21 09:16:25 +02:00
|
|
|
bool "SPI port 1"
|
2016-05-07 18:57:14 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable SPI controller port 1.
|
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
if SPI_1
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_1_NAME
|
2017-06-21 09:16:25 +02:00
|
|
|
string "SPI port 1 device name"
|
|
|
|
depends on !HAS_DTS_SPI
|
2016-05-07 18:57:14 -04:00
|
|
|
default "SPI_1"
|
|
|
|
|
2017-06-28 12:35:07 +02:00
|
|
|
config SPI_1_OP_MODES
|
|
|
|
int "Port 1 supported operation modes (master/slave/both)"
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
help
|
|
|
|
This sets the supported operation modes at runtime, by the SPI
|
|
|
|
port 1, where:
|
|
|
|
1 is MASTER mode only (default)
|
|
|
|
2 is SLAVE mode only
|
|
|
|
3 is both modes are available.
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_1_IRQ_PRI
|
2018-04-24 12:24:49 +00:00
|
|
|
int "Port 1 interrupt priority"
|
2017-06-21 09:16:25 +02:00
|
|
|
depends on !HAS_DTS_SPI
|
2016-05-07 18:57:14 -04:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_1_CS_GPIO_PORT
|
2017-06-21 09:16:25 +02:00
|
|
|
string "The GPIO port which is used to control CS"
|
|
|
|
depends on SPI_CS_GPIO
|
2016-05-07 18:57:14 -04:00
|
|
|
default "GPIO_0"
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_1_CS_GPIO_PIN
|
2016-05-07 18:57:14 -04:00
|
|
|
int "The GPIO PIN which is used to act as a CS pin"
|
2017-06-21 09:16:25 +02:00
|
|
|
depends on SPI_CS_GPIO
|
2016-05-07 18:57:14 -04:00
|
|
|
default 0
|
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
endif # SPI_1
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_2
|
2017-06-21 09:16:25 +02:00
|
|
|
bool "SPI port 2"
|
2016-05-07 18:57:14 -04:00
|
|
|
default n
|
|
|
|
help
|
2016-08-17 14:51:18 +05:30
|
|
|
Enable SPI controller port 2.
|
2016-05-07 18:57:14 -04:00
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
if SPI_2
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_2_NAME
|
2017-06-21 09:16:25 +02:00
|
|
|
string "SPI port 2 device name"
|
|
|
|
depends on !HAS_DTS_SPI
|
2016-05-07 18:57:14 -04:00
|
|
|
default "SPI_2"
|
|
|
|
|
2017-06-28 12:35:07 +02:00
|
|
|
config SPI_2_OP_MODES
|
|
|
|
int "Port 2 supported operation modes (master/slave/both)"
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
help
|
|
|
|
This sets the supported operation modes at runtime, by the SPI
|
|
|
|
port 2, where:
|
|
|
|
1 is MASTER mode only (default)
|
|
|
|
2 is SLAVE mode only
|
|
|
|
3 is both modes are available.
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_2_IRQ_PRI
|
2017-06-21 09:16:25 +02:00
|
|
|
int "Port 2 interrupt priority"
|
|
|
|
depends on !HAS_DTS_SPI
|
2016-05-07 18:57:14 -04:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_2_CS_GPIO_PORT
|
2017-06-21 09:16:25 +02:00
|
|
|
string "The GPIO port which is used to control CS"
|
|
|
|
depends on SPI_CS_GPIO
|
2016-05-07 18:57:14 -04:00
|
|
|
default "GPIO_0"
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config SPI_2_CS_GPIO_PIN
|
2016-05-07 18:57:14 -04:00
|
|
|
int "The GPIO PIN which is used to act as a CS pin"
|
2017-06-21 09:16:25 +02:00
|
|
|
depends on SPI_CS_GPIO
|
2016-05-07 18:57:14 -04:00
|
|
|
default 0
|
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
endif # SPI_2
|
|
|
|
|
2016-09-16 15:24:19 +02:00
|
|
|
config SPI_3
|
2017-06-21 09:16:25 +02:00
|
|
|
bool "SPI port 3"
|
2016-09-16 15:24:19 +02:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable SPI controller port 3.
|
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
if SPI_3
|
|
|
|
|
2016-09-16 15:24:19 +02:00
|
|
|
config SPI_3_NAME
|
2017-06-21 09:16:25 +02:00
|
|
|
string "SPI port 3 device name"
|
|
|
|
depends on !HAS_DTS_SPI
|
2016-09-16 15:24:19 +02:00
|
|
|
default "SPI_3"
|
|
|
|
|
2017-06-28 12:35:07 +02:00
|
|
|
config SPI_3_OP_MODES
|
|
|
|
int "Port 3 supported operation modes (master/slave/both)"
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
help
|
|
|
|
This sets the supported operation modes at runtime, by the SPI
|
|
|
|
port 3, where:
|
|
|
|
1 is MASTER mode only (default)
|
|
|
|
2 is SLAVE mode only
|
|
|
|
3 is both modes are available.
|
|
|
|
|
2016-09-16 15:24:19 +02:00
|
|
|
config SPI_3_IRQ_PRI
|
2017-06-21 09:16:25 +02:00
|
|
|
int "Port 3 interrupt priority"
|
|
|
|
depends on !HAS_DTS_SPI
|
|
|
|
|
|
|
|
endif # SPI_3
|
2016-09-16 15:24:19 +02:00
|
|
|
|
2018-01-05 19:54:30 +01:00
|
|
|
config SPI_4
|
2017-06-21 09:16:25 +02:00
|
|
|
bool "SPI port 4"
|
2018-01-05 19:54:30 +01:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable SPI controller port 4.
|
|
|
|
|
|
|
|
config SPI_4_NAME
|
2017-06-21 09:16:25 +02:00
|
|
|
string "SPI port 4 device name"
|
2018-01-05 19:54:30 +01:00
|
|
|
depends on SPI_4
|
|
|
|
default "SPI_4"
|
|
|
|
|
2017-06-28 12:35:07 +02:00
|
|
|
config SPI_4_OP_MODES
|
|
|
|
int "Port 4 supported operation modes (master/slave/both)"
|
|
|
|
depends on SPI_4
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
help
|
|
|
|
This sets the supported operation modes at runtime, by the SPI
|
|
|
|
port 4, where:
|
|
|
|
1 is MASTER mode only (default)
|
|
|
|
2 is SLAVE mode only
|
|
|
|
3 is both modes are available.
|
|
|
|
|
2018-01-05 19:54:30 +01:00
|
|
|
config SPI_5
|
2017-06-21 09:16:25 +02:00
|
|
|
bool "SPI port 5"
|
2018-01-05 19:54:30 +01:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable SPI controller port 5.
|
|
|
|
|
|
|
|
config SPI_5_NAME
|
2017-06-21 09:16:25 +02:00
|
|
|
string "SPI port 5 device name"
|
2018-01-05 19:54:30 +01:00
|
|
|
depends on SPI_5
|
|
|
|
default "SPI_5"
|
|
|
|
|
2017-06-28 12:35:07 +02:00
|
|
|
config SPI_5_OP_MODES
|
|
|
|
int "Port 5 supported operation modes (master/slave/both)"
|
|
|
|
depends on SPI_5
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
help
|
|
|
|
This sets the supported operation modes at runtime, by the SPI
|
|
|
|
port 5, where:
|
|
|
|
1 is MASTER mode only (default)
|
|
|
|
2 is SLAVE mode only
|
|
|
|
3 is both modes are available.
|
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
config SPI_INTEL
|
|
|
|
bool "Intel SPI controller driver"
|
|
|
|
depends on CPU_MINUTEIA
|
2016-11-30 17:17:16 -08:00
|
|
|
default n
|
|
|
|
help
|
2017-06-21 09:16:25 +02:00
|
|
|
Enable support for Intel's SPI controllers. Such controller
|
|
|
|
was formerly found on XScale chips. It can be found nowadays
|
|
|
|
on CEXXXX Intel media controller and Quark CPU (2 of them).
|
2016-11-30 17:17:16 -08:00
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
source "drivers/spi/Kconfig.stm32"
|
2016-02-18 14:38:32 -05:00
|
|
|
|
2017-06-21 09:16:25 +02:00
|
|
|
source "drivers/spi/Kconfig.dw"
|
2017-03-20 18:28:37 +01:00
|
|
|
|
2018-02-13 18:03:48 -06:00
|
|
|
source "drivers/spi/Kconfig.mcux_dspi"
|
|
|
|
|
2017-12-17 20:55:45 +01:00
|
|
|
source "drivers/spi/Kconfig.sam0"
|
|
|
|
|
2018-03-02 15:05:00 +01:00
|
|
|
source "drivers/spi/Kconfig.nrfx"
|
|
|
|
|
2016-02-18 14:38:32 -05:00
|
|
|
endif # SPI
|