Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. menuconfig SPI
  2. bool "SPI Support"
  3. help
  4. The "Serial Peripheral Interface" is a low level synchronous
  5. protocol. Chips that support SPI can have data transfer rates
  6. up to several tens of Mbit/sec. Chips are addressed with a
  7. controller and a chipselect. Most SPI slaves don't support
  8. dynamic device discovery; some are even write-only or read-only.
  9. SPI is widely used by microcontrollers to talk with sensors,
  10. eeprom and flash memory, codecs and various other controller
  11. chips, analog to digital (and d-to-a) converters, and more.
  12. MMC and SD cards can be accessed using SPI protocol; and for
  13. DataFlash cards used in MMC sockets, SPI must always be used.
  14. SPI is one of a family of similar protocols using a four wire
  15. interface (select, clock, data in, data out) including Microwire
  16. (half duplex), SSP, SSI, and PSP. This driver framework should
  17. work with most such devices and controllers.
  18. if SPI
  19. config DM_SPI
  20. bool "Enable Driver Model for SPI drivers"
  21. depends on DM
  22. help
  23. Enable driver model for SPI. The SPI slave interface
  24. (spi_setup_slave(), spi_xfer(), etc.) is then implemented by
  25. the SPI uclass. Drivers provide methods to access the SPI
  26. buses that they control. The uclass interface is defined in
  27. include/spi.h. The existing spi_slave structure is attached
  28. as 'parent data' to every slave on each bus. Slaves
  29. typically use driver-private data instead of extending the
  30. spi_slave structure.
  31. config SPI_MEM
  32. bool "SPI memory extension"
  33. help
  34. Enable this option if you want to enable the SPI memory extension.
  35. This extension is meant to simplify interaction with SPI memories
  36. by providing an high-level interface to send memory-like commands.
  37. if DM_SPI
  38. config ALTERA_SPI
  39. bool "Altera SPI driver"
  40. help
  41. Enable the Altera SPI driver. This driver can be used to
  42. access the SPI NOR flash on platforms embedding this Altera
  43. IP core. Please find details on the "Embedded Peripherals IP
  44. User Guide" of Altera.
  45. config ATCSPI200_SPI
  46. bool "Andestech ATCSPI200 SPI driver"
  47. help
  48. Enable the Andestech ATCSPI200 SPI driver. This driver can be
  49. used to access the SPI flash on AE3XX and AE250 platforms embedding
  50. this Andestech IP core.
  51. config ATH79_SPI
  52. bool "Atheros SPI driver"
  53. depends on ARCH_ATH79
  54. help
  55. Enable the Atheros ar7xxx/ar9xxx SoC SPI driver, it was used
  56. to access SPI NOR flash and other SPI peripherals. This driver
  57. uses driver model and requires a device tree binding to operate.
  58. please refer to doc/device-tree-bindings/spi/spi-ath79.txt.
  59. config ATMEL_QSPI
  60. bool "Atmel Quad SPI Controller"
  61. depends on ARCH_AT91
  62. help
  63. Enable the Atmel Quad SPI controller in master mode. This driver
  64. does not support generic SPI. The implementation supports only the
  65. spi-mem interface.
  66. config ATMEL_SPI
  67. bool "Atmel SPI driver"
  68. default y if ARCH_AT91
  69. help
  70. This enables driver for the Atmel SPI Controller, present on
  71. many AT91 (ARM) chips. This driver can be used to access
  72. the SPI Flash, such as AT25DF321.
  73. config BCM63XX_HSSPI
  74. bool "BCM63XX HSSPI driver"
  75. depends on (ARCH_BMIPS || ARCH_BCM68360 || \
  76. ARCH_BCM6858 || ARCH_BCM63158)
  77. help
  78. Enable the BCM6328 HSSPI driver. This driver can be used to
  79. access the SPI NOR flash on platforms embedding this Broadcom
  80. SPI core.
  81. config BCM63XX_SPI
  82. bool "BCM6348 SPI driver"
  83. depends on ARCH_BMIPS
  84. help
  85. Enable the BCM6348/BCM6358 SPI driver. This driver can be used to
  86. access the SPI NOR flash on platforms embedding these Broadcom
  87. SPI cores.
  88. config BCMSTB_SPI
  89. bool "BCMSTB SPI driver"
  90. help
  91. Enable the Broadcom set-top box SPI driver. This driver can
  92. be used to access the SPI flash on platforms embedding this
  93. Broadcom SPI core.
  94. config CADENCE_QSPI
  95. bool "Cadence QSPI driver"
  96. help
  97. Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
  98. used to access the SPI NOR flash on platforms embedding this
  99. Cadence IP core.
  100. config CF_SPI
  101. bool "ColdFire SPI driver"
  102. help
  103. Enable the ColdFire SPI driver. This driver can be used on
  104. some m68k SoCs.
  105. config DESIGNWARE_SPI
  106. bool "Designware SPI driver"
  107. help
  108. Enable the Designware SPI driver. This driver can be used to
  109. access the SPI NOR flash on platforms embedding this Designware
  110. IP core.
  111. config EXYNOS_SPI
  112. bool "Samsung Exynos SPI driver"
  113. help
  114. Enable the Samsung Exynos SPI driver. This driver can be used to
  115. access the SPI NOR flash on platforms embedding this Samsung
  116. Exynos IP core.
  117. config FSL_DSPI
  118. bool "Freescale DSPI driver"
  119. help
  120. Enable the Freescale DSPI driver. This driver can be used to
  121. access the SPI NOR flash and SPI Data flash on platforms embedding
  122. this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
  123. use this driver.
  124. config ICH_SPI
  125. bool "Intel ICH SPI driver"
  126. help
  127. Enable the Intel ICH SPI driver. This driver can be used to
  128. access the SPI NOR flash on platforms embedding this Intel
  129. ICH IP core.
  130. config MESON_SPIFC
  131. bool "Amlogic Meson SPI Flash Controller driver"
  132. depends on ARCH_MESON
  133. help
  134. Enable the Amlogic Meson SPI Flash Controller SPIFC) driver.
  135. This driver can be used to access the SPI NOR flash chips on
  136. Amlogic Meson SoCs.
  137. config MPC8XX_SPI
  138. bool "MPC8XX SPI Driver"
  139. depends on MPC8xx
  140. help
  141. Enable support for SPI on MPC8XX
  142. config MPC8XXX_SPI
  143. bool "MPC8XXX SPI Driver"
  144. help
  145. Enable support for SPI on the MPC8XXX PowerPC SoCs.
  146. config MT7621_SPI
  147. bool "MediaTek MT7621 SPI driver"
  148. depends on SOC_MT7628
  149. help
  150. Enable the MT7621 SPI driver. This driver can be used to access
  151. the SPI NOR flash on platforms embedding this Ralink / MediaTek
  152. SPI core, like MT7621/7628/7688.
  153. config MTK_SNFI_SPI
  154. bool "Mediatek SPI memory controller driver"
  155. depends on SPI_MEM
  156. help
  157. Enable the Mediatek SPI memory controller driver. This driver is
  158. originally based on the MediaTek SNFI IP core. It can only be
  159. used to access SPI memory devices like SPI-NOR or SPI-NAND on
  160. platforms embedding this IP core, like MT7622/M7629.
  161. config MVEBU_A3700_SPI
  162. bool "Marvell Armada 3700 SPI driver"
  163. select CLK_ARMADA_3720
  164. help
  165. Enable the Marvell Armada 3700 SPI driver. This driver can be
  166. used to access the SPI NOR flash on platforms embedding this
  167. Marvell IP core.
  168. config NXP_FSPI
  169. bool "NXP FlexSPI driver"
  170. depends on SPI_MEM
  171. help
  172. Enable the NXP FlexSPI (FSPI) driver. This driver can be used to
  173. access the SPI NOR flash on platforms embedding this NXP IP core.
  174. config PIC32_SPI
  175. bool "Microchip PIC32 SPI driver"
  176. depends on MACH_PIC32
  177. help
  178. Enable the Microchip PIC32 SPI driver. This driver can be used
  179. to access the SPI NOR flash, MMC-over-SPI on platforms based on
  180. Microchip PIC32 family devices.
  181. config PL022_SPI
  182. bool "ARM AMBA PL022 SSP controller driver"
  183. depends on ARM
  184. help
  185. This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
  186. controller. If you have an embedded system with an AMBA(R)
  187. bus and a PL022 controller, say Y or M here.
  188. config RENESAS_RPC_SPI
  189. bool "Renesas RPC SPI driver"
  190. depends on RCAR_GEN3 || RZA1
  191. imply SPI_FLASH_BAR
  192. help
  193. Enable the Renesas RPC SPI driver, used to access SPI NOR flash
  194. on Renesas RCar Gen3 SoCs. This uses driver model and requires a
  195. device tree binding to operate.
  196. config ROCKCHIP_SPI
  197. bool "Rockchip SPI driver"
  198. help
  199. Enable the Rockchip SPI driver, used to access SPI NOR flash and
  200. other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
  201. This uses driver model and requires a device tree binding to
  202. operate.
  203. config SANDBOX_SPI
  204. bool "Sandbox SPI driver"
  205. depends on SANDBOX && DM
  206. help
  207. Enable SPI support for sandbox. This is an emulation of a real SPI
  208. bus. Devices can be attached to the bus using the device tree
  209. which specifies the driver to use. As an example, see this device
  210. tree fragment from sandbox.dts. It shows that the SPI bus has a
  211. single flash device on chip select 0 which is emulated by the driver
  212. for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
  213. spi@0 {
  214. #address-cells = <1>;
  215. #size-cells = <0>;
  216. reg = <0>;
  217. compatible = "sandbox,spi";
  218. cs-gpios = <0>, <&gpio_a 0>;
  219. flash@0 {
  220. reg = <0>;
  221. compatible = "spansion,m25p16", "jedec,spi-nor";
  222. spi-max-frequency = <40000000>;
  223. sandbox,filename = "spi.bin";
  224. };
  225. };
  226. config SPI_SIFIVE
  227. bool "SiFive SPI driver"
  228. help
  229. This driver supports the SiFive SPI IP. If unsure say N.
  230. Enable the SiFive SPI controller driver.
  231. The SiFive SPI controller driver is found on various SiFive SoCs.
  232. config SPI_SUNXI
  233. bool "Allwinner SoC SPI controllers"
  234. default ARCH_SUNXI
  235. help
  236. Enable the Allwinner SoC SPi controller driver.
  237. Same controller driver can reuse in all Allwinner SoC variants.
  238. config STM32_QSPI
  239. bool "STM32F7 QSPI driver"
  240. depends on STM32F4 || STM32F7 || ARCH_STM32MP
  241. help
  242. Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
  243. used to access the SPI NOR flash chips on platforms embedding
  244. this ST IP core.
  245. config STM32_SPI
  246. bool "STM32 SPI driver"
  247. depends on ARCH_STM32MP
  248. help
  249. Enable the STM32 Serial Peripheral Interface (SPI) driver for STM32MP
  250. SoCs. This uses driver model and requires a device tree binding to
  251. operate.
  252. config TEGRA114_SPI
  253. bool "nVidia Tegra114 SPI driver"
  254. help
  255. Enable the nVidia Tegra114 SPI driver. This driver can be used to
  256. access the SPI NOR flash on platforms embedding this nVidia Tegra114
  257. IP core.
  258. This controller is different than the older SoCs SPI controller and
  259. also register interface get changed with this controller.
  260. config TEGRA20_SFLASH
  261. bool "nVidia Tegra20 Serial Flash controller driver"
  262. help
  263. Enable the nVidia Tegra20 Serial Flash controller driver. This driver
  264. can be used to access the SPI NOR flash on platforms embedding this
  265. nVidia Tegra20 IP core.
  266. config TEGRA20_SLINK
  267. bool "nVidia Tegra20/Tegra30 SLINK driver"
  268. help
  269. Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
  270. be used to access the SPI NOR flash on platforms embedding this
  271. nVidia Tegra20/Tegra30 IP cores.
  272. config TEGRA210_QSPI
  273. bool "nVidia Tegra210 QSPI driver"
  274. help
  275. Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
  276. be used to access SPI chips on platforms embedding this
  277. NVIDIA Tegra210 IP core.
  278. config TI_QSPI
  279. bool "TI QSPI driver"
  280. imply TI_EDMA3
  281. help
  282. Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
  283. This driver support spi flash single, quad and memory reads.
  284. config UNIPHIER_SPI
  285. bool "Socionext UniPhier SPI driver"
  286. depends on ARCH_UNIPHIER
  287. help
  288. Enable the Socionext UniPhier SPI driver. This driver can
  289. be used to access SPI chips on platforms embedding this
  290. UniPhier IP core.
  291. config XILINX_SPI
  292. bool "Xilinx SPI driver"
  293. help
  294. Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
  295. controller support 8 bit SPI transfers only, with or w/o FIFO.
  296. For more info on Xilinx SPI Register Definitions and Overview
  297. see driver file - drivers/spi/xilinx_spi.c
  298. config ZYNQ_SPI
  299. bool "Zynq SPI driver"
  300. depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
  301. help
  302. Enable the Zynq SPI driver. This driver can be used to
  303. access the SPI NOR flash on platforms embedding this Zynq
  304. SPI IP core.
  305. config ZYNQ_QSPI
  306. bool "Zynq QSPI driver"
  307. depends on ARCH_ZYNQ
  308. imply SPI_FLASH_BAR
  309. help
  310. Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
  311. used to access the SPI NOR flash on platforms embedding this
  312. Zynq QSPI IP core. This IP is used to connect the flash in
  313. 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
  314. config ZYNQMP_GQSPI
  315. bool "Configure ZynqMP Generic QSPI"
  316. depends on ARCH_ZYNQMP || ARCH_VERSAL
  317. help
  318. This option is used to enable ZynqMP QSPI controller driver which
  319. is used to communicate with qspi flash devices.
  320. endif # if DM_SPI
  321. config SOFT_SPI
  322. bool "Soft SPI driver"
  323. depends on DM_SPI || (DEPRECATED && !DM_SPI)
  324. help
  325. Enable Soft SPI driver. This driver is to use GPIO simulate
  326. the SPI protocol.
  327. config MSCC_BB_SPI
  328. bool "MSCC bitbang SPI driver"
  329. depends on SOC_VCOREIII
  330. help
  331. Enable MSCC bitbang SPI driver. This driver can be used on
  332. MSCC SOCs.
  333. config CF_SPI
  334. bool "ColdFire SPI driver"
  335. help
  336. Enable the ColdFire SPI driver. This driver can be used on
  337. some m68k SoCs.
  338. config FSL_ESPI
  339. bool "Freescale eSPI driver"
  340. imply SPI_FLASH_BAR
  341. help
  342. Enable the Freescale eSPI driver. This driver can be used to
  343. access the SPI interface and SPI NOR flash on platforms embedding
  344. this Freescale eSPI IP core.
  345. config FSL_QSPI
  346. bool "Freescale QSPI driver"
  347. imply SPI_FLASH_BAR
  348. help
  349. Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
  350. used to access the SPI NOR flash on platforms embedding this
  351. Freescale IP core.
  352. config DAVINCI_SPI
  353. bool "Davinci & Keystone SPI driver"
  354. depends on ARCH_DAVINCI || ARCH_KEYSTONE
  355. help
  356. Enable the Davinci SPI driver
  357. config SH_SPI
  358. bool "SuperH SPI driver"
  359. depends on DEPRECATED
  360. help
  361. Enable the SuperH SPI controller driver. This driver can be used
  362. on various SuperH SoCs, such as SH7757.
  363. config SH_QSPI
  364. bool "Renesas Quad SPI driver"
  365. help
  366. Enable the Renesas Quad SPI controller driver. This driver can be
  367. used on Renesas SoCs.
  368. config KIRKWOOD_SPI
  369. bool "Marvell Kirkwood SPI Driver"
  370. help
  371. Enable support for SPI on various Marvell SoCs, such as
  372. Kirkwood and Armada 375.
  373. config LPC32XX_SSP
  374. bool "LPC32XX SPI Driver"
  375. depends on DEPRECATED
  376. help
  377. Enable support for SPI on LPC32xx
  378. config MXC_SPI
  379. bool "MXC SPI Driver"
  380. help
  381. Enable the MXC SPI controller driver. This driver can be used
  382. on various i.MX SoCs such as i.MX31/35/51/6/7.
  383. config MXS_SPI
  384. bool "MXS SPI Driver"
  385. help
  386. Enable the MXS SPI controller driver. This driver can be used
  387. on the i.MX23 and i.MX28 SoCs.
  388. config OMAP3_SPI
  389. bool "McSPI driver for OMAP"
  390. help
  391. SPI master controller for OMAP24XX and later Multichannel SPI
  392. (McSPI). This driver be used to access SPI chips on platforms
  393. embedding this OMAP3 McSPI IP core.
  394. endif # menu "SPI Support"