Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | # Kconfig - SPI driver configuration options # # Copyright (c) 2015-2016 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # config SPI_LEGACY_API bool "Use legacy SPI API (default)" default y help Driver and user API is the legacy SPI API (spi_legacy.h). If unselected, the new API will be used. # # SPI Drivers # menuconfig SPI bool prompt "SPI hardware bus support" default n help Enable support for the SPI hardware bus. config SPI_QMSI bool "QMSI driver for SPI controller" depends on SPI && QMSI default n help SPI driver implementation using QMSI library. QMSI is the Quark Microcontroller Software Interface, providing a common interface to the Quark family of microcontrollers. config SPI_QMSI_SS bool "QMSI driver for SPI controller on Sensor Subsystem" depends on SPI && QMSI default n help SPI driver implementation using QMSI library. This instance is for the Sensor Subsystem. config SPI_INTEL bool prompt "Intel SPI controller driver" depends on SPI && CPU_MINUTEIA default n help 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). config SPI_STM32 bool prompt "STM32 MCU SPI controller driver" depends on SPI && SOC_FAMILY_STM32 depends on SOC_SERIES_STM32L4X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F3X default n help Enable SPI support on the STM32 family of processors. config SPI_STM32_INTERRUPT bool prompt "STM32 MCU SPI Interrupt Support" depends on SPI_STM32 default n help Enable Interrupt support for the SPI Driver of STM32 family. if SPI config SPI_INIT_PRIORITY int "Init priority" default 70 help Device driver initialization priority. config SYS_LOG_SPI_LEVEL int prompt "SPI Driver Log level" depends on SYS_LOG && SPI default 0 range 0 4 help Sets log level for SPI drivers. Levels are: 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 config SPI_CS_GPIO bool "SPI port CS pin is controlled via a GPIO port" depends on GPIO default n config SPI_0 bool prompt "SPI port 0" default n help Enable SPI controller port 0. config SPI_0_NAME string prompt "SPI port 0 device name" depends on SPI_0 default "SPI_0" config SPI_0_IRQ_PRI int prompt "Port 0 interrupt priority" depends on SPI_0 config SPI_0_DEFAULT_CFG hex "Port 0 default configuration" depends on SPI_0 default 0x80 config SPI_0_DEFAULT_BAUD_RATE int "Port 0 default baud rate" depends on SPI_0 default 500000 config SPI_0_CS_GPIO_PORT string prompt "The GPIO port which is used to control CS" depends on SPI_0 && SPI_CS_GPIO default "GPIO_0" config SPI_0_CS_GPIO_PIN int "The GPIO PIN which is used to act as a CS pin" depends on SPI_0 && SPI_CS_GPIO default 0 config SPI_1 bool prompt "SPI port 1" default n help Enable SPI controller port 1. config SPI_1_NAME string prompt "SPI port 1 device name" depends on SPI_1 default "SPI_1" config SPI_1_IRQ_PRI int prompt "Port 0 interrupt priority" depends on SPI_1 config SPI_1_DEFAULT_CFG hex "Port 1 default configuration" depends on SPI_1 default 0x80 config SPI_1_DEFAULT_BAUD_RATE int "Port 1 default baud rate" depends on SPI_1 default 500000 config SPI_1_CS_GPIO_PORT string prompt "The GPIO port which is used to control CS" depends on SPI_1 && SPI_CS_GPIO default "GPIO_0" config SPI_1_CS_GPIO_PIN int "The GPIO PIN which is used to act as a CS pin" depends on SPI_1 && SPI_CS_GPIO default 0 config SPI_2 bool prompt "SPI port 2" default n help Enable SPI controller port 2. config SPI_2_NAME string prompt "SPI port 2 device name" depends on SPI_2 default "SPI_2" config SPI_2_IRQ_PRI int prompt "Port 2 interrupt priority" depends on SPI_2 config SPI_2_DEFAULT_CFG hex "Port 2 default configuration" depends on SPI_2 default 0x80 config SPI_2_DEFAULT_BAUD_RATE int "Port 2 default baud rate" depends on SPI_2 default 500000 config SPI_2_CS_GPIO_PORT string prompt "The GPIO port which is used to control CS" depends on SPI_2 && SPI_CS_GPIO default "GPIO_0" config SPI_2_CS_GPIO_PIN int "The GPIO PIN which is used to act as a CS pin" depends on SPI_2 && SPI_CS_GPIO default 0 config SPI_3 bool prompt "SPI port 3" default n help Enable SPI controller port 3. config SPI_3_NAME string prompt "SPI port 3 device name" depends on SPI_3 default "SPI_3" config SPI_3_IRQ_PRI int prompt "Port 3 interrupt priority" depends on SPI_3 config SPI_SS_INIT_PRIORITY int "Init priority" depends on SPI_QMSI_SS default 70 help Device driver initialization priority. config SPI_SS_CS_GPIO bool "SPI port CS pin is controlled via a GPIO port" select GPIO depends on SPI_QMSI_SS default n config SPI_SS_0 bool prompt "SPI SS port 0" depends on SPI_QMS_SS default n help Enable SPI controller port 0. config SPI_SS_0_NAME string prompt "SPI SS port 0 device name" depends on SPI_SS_0 default "SPI_SS_0" config SPI_SS_0_IRQ_PRI int prompt "Port 0 interrupt priority" depends on SPI_SS_0 config SPI_SS_0_CS_GPIO_PORT string prompt "The GPIO port which is used to control CS" depends on SPI_SS_0 && SPI_SS_CS_GPIO default "GPIO_0" config SPI_SS_0_CS_GPIO_PIN int "The GPIO PIN which is used to act as a CS pin" depends on SPI_SS_0 && SPI_SS_CS_GPIO default 0 config SPI_SS_1 bool prompt "SPI SS port 1" depends on SPI_QMSI_SS default n help Enable SPI controller port 1. config SPI_SS_1_NAME string prompt "SPI port 1 device name" depends on SPI_SS_1 default "SPI_SS_1" config SPI_SS_1_IRQ_PRI int prompt "Port 0 interrupt priority" depends on SPI_SS_1 config SPI_SS_1_CS_GPIO_PORT string prompt "The GPIO port which is used to control CS" depends on SPI_SS_1 && SPI_SS_CS_GPIO default "GPIO_0" config SPI_SS_1_CS_GPIO_PIN int "The GPIO PIN which is used to act as a CS pin" depends on SPI_SS_1 && SPI_SS_CS_GPIO default 0 source "drivers/spi/Kconfig.dw" source "drivers/spi/Kconfig.mcux_dspi" if SPI_LEGACY_API source "drivers/spi/Kconfig.nrf5_legacy" endif endif # SPI |