2015-08-21 17:57:49 +08:00
|
|
|
# Kconfig - SPI driver configuration options
|
|
|
|
|
|
|
|
#
|
2016-03-18 02:21:49 +08:00
|
|
|
# Copyright (c) 2015-2016 Intel Corporation
|
2015-08-21 17:57:49 +08:00
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-08-21 17:57:49 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# SPI Drivers
|
|
|
|
#
|
|
|
|
menuconfig SPI
|
2017-06-21 15:16:25 +08:00
|
|
|
bool "SPI hardware bus support"
|
2018-11-15 23:02:14 +08:00
|
|
|
select HAS_DTS_SPI
|
2015-08-21 17:57:49 +08:00
|
|
|
help
|
|
|
|
Enable support for the SPI hardware bus.
|
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
if SPI
|
2016-09-16 21:24:19 +08:00
|
|
|
|
2018-01-30 05:12:50 +08:00
|
|
|
config SPI_ASYNC
|
|
|
|
bool "Enable Asynchronous call support"
|
|
|
|
select POLL
|
|
|
|
help
|
|
|
|
This option enables the asynchronous API calls.
|
|
|
|
|
2017-06-28 18:35:07 +08:00
|
|
|
config SPI_SLAVE
|
|
|
|
bool "Enable Slave support [EXPERIMENTAL]"
|
|
|
|
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.
|
|
|
|
|
2018-09-23 10:13:18 +08:00
|
|
|
module = SPI
|
|
|
|
module-str = spi
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
2018-03-29 23:35:07 +08:00
|
|
|
|
2015-08-21 18:01:08 +08:00
|
|
|
|
2016-05-08 06:57:14 +08:00
|
|
|
config SPI_0
|
2017-06-21 15:16:25 +08:00
|
|
|
bool "SPI port 0"
|
2016-05-08 06:57:14 +08:00
|
|
|
help
|
2016-08-17 17:21:18 +08:00
|
|
|
Enable SPI controller port 0.
|
2016-05-08 06:57:14 +08:00
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
if SPI_0
|
|
|
|
|
2017-06-28 18:35:07 +08: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.
|
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
endif # SPI_0
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config SPI_1
|
2017-06-21 15:16:25 +08:00
|
|
|
bool "SPI port 1"
|
2016-05-08 06:57:14 +08:00
|
|
|
help
|
|
|
|
Enable SPI controller port 1.
|
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
if SPI_1
|
|
|
|
|
2017-06-28 18:35:07 +08: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.
|
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
endif # SPI_1
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config SPI_2
|
2017-06-21 15:16:25 +08:00
|
|
|
bool "SPI port 2"
|
2016-05-08 06:57:14 +08:00
|
|
|
help
|
2016-08-17 17:21:18 +08:00
|
|
|
Enable SPI controller port 2.
|
2016-05-08 06:57:14 +08:00
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
if SPI_2
|
|
|
|
|
2017-06-28 18:35:07 +08: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.
|
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
endif # SPI_2
|
|
|
|
|
2016-09-16 21:24:19 +08:00
|
|
|
config SPI_3
|
2017-06-21 15:16:25 +08:00
|
|
|
bool "SPI port 3"
|
2016-09-16 21:24:19 +08:00
|
|
|
help
|
|
|
|
Enable SPI controller port 3.
|
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
if SPI_3
|
|
|
|
|
2017-06-28 18:35:07 +08: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.
|
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
endif # SPI_3
|
2016-09-16 21:24:19 +08:00
|
|
|
|
2018-01-06 02:54:30 +08:00
|
|
|
config SPI_4
|
2017-06-21 15:16:25 +08:00
|
|
|
bool "SPI port 4"
|
2018-01-06 02:54:30 +08:00
|
|
|
help
|
|
|
|
Enable SPI controller port 4.
|
|
|
|
|
2018-04-17 02:56:31 +08:00
|
|
|
if SPI_4
|
|
|
|
|
2017-06-28 18:35:07 +08:00
|
|
|
config SPI_4_OP_MODES
|
|
|
|
int "Port 4 supported operation modes (master/slave/both)"
|
|
|
|
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-04-17 02:56:31 +08:00
|
|
|
endif # SPI_4
|
|
|
|
|
2018-01-06 02:54:30 +08:00
|
|
|
config SPI_5
|
2017-06-21 15:16:25 +08:00
|
|
|
bool "SPI port 5"
|
2018-01-06 02:54:30 +08:00
|
|
|
help
|
|
|
|
Enable SPI controller port 5.
|
|
|
|
|
2018-04-17 02:56:31 +08:00
|
|
|
if SPI_5
|
|
|
|
|
2017-06-28 18:35:07 +08:00
|
|
|
config SPI_5_OP_MODES
|
|
|
|
int "Port 5 supported operation modes (master/slave/both)"
|
|
|
|
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.
|
|
|
|
|
2018-04-17 02:56:31 +08:00
|
|
|
endif # SPI_5
|
|
|
|
|
2019-02-06 22:33:38 +08:00
|
|
|
config SPI_6
|
|
|
|
bool "SPI port 6"
|
|
|
|
help
|
|
|
|
Enable SPI controller port 6.
|
|
|
|
|
|
|
|
if SPI_6
|
|
|
|
|
|
|
|
config SPI_6_OP_MODES
|
|
|
|
int "Port 6 supported operation modes (master/slave/both)"
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
help
|
|
|
|
This sets the supported operation modes at runtime, by the SPI
|
|
|
|
port 6, where:
|
|
|
|
1 is MASTER mode only (default)
|
|
|
|
2 is SLAVE mode only
|
|
|
|
3 is both modes are available.
|
|
|
|
|
|
|
|
endif # SPI_6
|
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
config SPI_INTEL
|
|
|
|
bool "Intel SPI controller driver"
|
|
|
|
depends on CPU_MINUTEIA
|
2016-12-01 09:17:16 +08:00
|
|
|
help
|
2017-06-21 15:16:25 +08: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-12-01 09:17:16 +08:00
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
source "drivers/spi/Kconfig.stm32"
|
2016-02-19 03:38:32 +08:00
|
|
|
|
2017-06-21 15:16:25 +08:00
|
|
|
source "drivers/spi/Kconfig.dw"
|
2017-03-21 01:28:37 +08:00
|
|
|
|
2018-02-14 08:03:48 +08:00
|
|
|
source "drivers/spi/Kconfig.mcux_dspi"
|
|
|
|
|
2018-09-15 05:06:13 +08:00
|
|
|
source "drivers/spi/Kconfig.mcux_lpspi"
|
|
|
|
|
2018-10-09 11:28:30 +08:00
|
|
|
source "drivers/spi/Kconfig.sam"
|
|
|
|
|
2017-12-18 03:55:45 +08:00
|
|
|
source "drivers/spi/Kconfig.sam0"
|
|
|
|
|
2018-11-22 03:28:29 +08:00
|
|
|
source "drivers/spi/Kconfig.sifive"
|
|
|
|
|
2018-03-02 22:05:00 +08:00
|
|
|
source "drivers/spi/Kconfig.nrfx"
|
|
|
|
|
2019-05-24 00:31:05 +08:00
|
|
|
source "drivers/spi/Kconfig.cc13xx_cc26xx"
|
|
|
|
|
2016-02-19 03:38:32 +08:00
|
|
|
endif # SPI
|