Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  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 DAVINCI_SPI
  106. bool "Davinci & Keystone SPI driver"
  107. depends on ARCH_DAVINCI || ARCH_KEYSTONE
  108. help
  109. Enable the Davinci SPI driver
  110. config DESIGNWARE_SPI
  111. bool "Designware SPI driver"
  112. help
  113. Enable the Designware SPI driver. This driver can be used to
  114. access the SPI NOR flash on platforms embedding this Designware
  115. IP core.
  116. config EXYNOS_SPI
  117. bool "Samsung Exynos SPI driver"
  118. help
  119. Enable the Samsung Exynos SPI driver. This driver can be used to
  120. access the SPI NOR flash on platforms embedding this Samsung
  121. Exynos IP core.
  122. config FSL_DSPI
  123. bool "Freescale DSPI driver"
  124. help
  125. Enable the Freescale DSPI driver. This driver can be used to
  126. access the SPI NOR flash and SPI Data flash on platforms embedding
  127. this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
  128. use this driver.
  129. config FSL_QSPI
  130. bool "Freescale QSPI driver"
  131. imply SPI_FLASH_BAR
  132. help
  133. Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
  134. used to access the SPI NOR flash on platforms embedding this
  135. Freescale IP core.
  136. config ICH_SPI
  137. bool "Intel ICH SPI driver"
  138. help
  139. Enable the Intel ICH SPI driver. This driver can be used to
  140. access the SPI NOR flash on platforms embedding this Intel
  141. ICH IP core.
  142. config KIRKWOOD_SPI
  143. bool "Marvell Kirkwood SPI Driver"
  144. help
  145. Enable support for SPI on various Marvell SoCs, such as
  146. Kirkwood and Armada 375.
  147. config MESON_SPIFC
  148. bool "Amlogic Meson SPI Flash Controller driver"
  149. depends on ARCH_MESON
  150. help
  151. Enable the Amlogic Meson SPI Flash Controller SPIFC) driver.
  152. This driver can be used to access the SPI NOR flash chips on
  153. Amlogic Meson SoCs.
  154. config MPC8XX_SPI
  155. bool "MPC8XX SPI Driver"
  156. depends on MPC8xx
  157. help
  158. Enable support for SPI on MPC8XX
  159. config MPC8XXX_SPI
  160. bool "MPC8XXX SPI Driver"
  161. help
  162. Enable support for SPI on the MPC8XXX PowerPC SoCs.
  163. config MSCC_BB_SPI
  164. bool "MSCC bitbang SPI driver"
  165. depends on SOC_VCOREIII
  166. help
  167. Enable MSCC bitbang SPI driver. This driver can be used on
  168. MSCC SOCs.
  169. config MT7621_SPI
  170. bool "MediaTek MT7621 SPI driver"
  171. depends on SOC_MT7628
  172. help
  173. Enable the MT7621 SPI driver. This driver can be used to access
  174. the SPI NOR flash on platforms embedding this Ralink / MediaTek
  175. SPI core, like MT7621/7628/7688.
  176. config MTK_SNFI_SPI
  177. bool "Mediatek SPI memory controller driver"
  178. depends on SPI_MEM
  179. help
  180. Enable the Mediatek SPI memory controller driver. This driver is
  181. originally based on the MediaTek SNFI IP core. It can only be
  182. used to access SPI memory devices like SPI-NOR or SPI-NAND on
  183. platforms embedding this IP core, like MT7622/M7629.
  184. config MVEBU_A3700_SPI
  185. bool "Marvell Armada 3700 SPI driver"
  186. select CLK_ARMADA_3720
  187. help
  188. Enable the Marvell Armada 3700 SPI driver. This driver can be
  189. used to access the SPI NOR flash on platforms embedding this
  190. Marvell IP core.
  191. config MXS_SPI
  192. bool "MXS SPI Driver"
  193. help
  194. Enable the MXS SPI controller driver. This driver can be used
  195. on the i.MX23 and i.MX28 SoCs.
  196. config NXP_FSPI
  197. bool "NXP FlexSPI driver"
  198. depends on SPI_MEM
  199. help
  200. Enable the NXP FlexSPI (FSPI) driver. This driver can be used to
  201. access the SPI NOR flash on platforms embedding this NXP IP core.
  202. config OMAP3_SPI
  203. bool "McSPI driver for OMAP"
  204. help
  205. SPI master controller for OMAP24XX and later Multichannel SPI
  206. (McSPI). This driver be used to access SPI chips on platforms
  207. embedding this OMAP3 McSPI IP core.
  208. config PIC32_SPI
  209. bool "Microchip PIC32 SPI driver"
  210. depends on MACH_PIC32
  211. help
  212. Enable the Microchip PIC32 SPI driver. This driver can be used
  213. to access the SPI NOR flash, MMC-over-SPI on platforms based on
  214. Microchip PIC32 family devices.
  215. config PL022_SPI
  216. bool "ARM AMBA PL022 SSP controller driver"
  217. depends on ARM
  218. help
  219. This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
  220. controller. If you have an embedded system with an AMBA(R)
  221. bus and a PL022 controller, say Y or M here.
  222. config RENESAS_RPC_SPI
  223. bool "Renesas RPC SPI driver"
  224. depends on RCAR_GEN3 || RZA1
  225. imply SPI_FLASH_BAR
  226. help
  227. Enable the Renesas RPC SPI driver, used to access SPI NOR flash
  228. on Renesas RCar Gen3 SoCs. This uses driver model and requires a
  229. device tree binding to operate.
  230. config ROCKCHIP_SPI
  231. bool "Rockchip SPI driver"
  232. help
  233. Enable the Rockchip SPI driver, used to access SPI NOR flash and
  234. other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
  235. This uses driver model and requires a device tree binding to
  236. operate.
  237. config SANDBOX_SPI
  238. bool "Sandbox SPI driver"
  239. depends on SANDBOX && DM
  240. help
  241. Enable SPI support for sandbox. This is an emulation of a real SPI
  242. bus. Devices can be attached to the bus using the device tree
  243. which specifies the driver to use. As an example, see this device
  244. tree fragment from sandbox.dts. It shows that the SPI bus has a
  245. single flash device on chip select 0 which is emulated by the driver
  246. for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
  247. spi@0 {
  248. #address-cells = <1>;
  249. #size-cells = <0>;
  250. reg = <0>;
  251. compatible = "sandbox,spi";
  252. cs-gpios = <0>, <&gpio_a 0>;
  253. flash@0 {
  254. reg = <0>;
  255. compatible = "spansion,m25p16", "jedec,spi-nor";
  256. spi-max-frequency = <40000000>;
  257. sandbox,filename = "spi.bin";
  258. };
  259. };
  260. config SPI_SIFIVE
  261. bool "SiFive SPI driver"
  262. help
  263. This driver supports the SiFive SPI IP. If unsure say N.
  264. Enable the SiFive SPI controller driver.
  265. The SiFive SPI controller driver is found on various SiFive SoCs.
  266. config SOFT_SPI
  267. bool "Soft SPI driver"
  268. help
  269. Enable Soft SPI driver. This driver is to use GPIO simulate
  270. the SPI protocol.
  271. config SPI_SUNXI
  272. bool "Allwinner SoC SPI controllers"
  273. default ARCH_SUNXI
  274. help
  275. Enable the Allwinner SoC SPi controller driver.
  276. Same controller driver can reuse in all Allwinner SoC variants.
  277. config STM32_QSPI
  278. bool "STM32F7 QSPI driver"
  279. depends on STM32F4 || STM32F7 || ARCH_STM32MP
  280. help
  281. Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
  282. used to access the SPI NOR flash chips on platforms embedding
  283. this ST IP core.
  284. config STM32_SPI
  285. bool "STM32 SPI driver"
  286. depends on ARCH_STM32MP
  287. help
  288. Enable the STM32 Serial Peripheral Interface (SPI) driver for STM32MP
  289. SoCs. This uses driver model and requires a device tree binding to
  290. operate.
  291. config TEGRA114_SPI
  292. bool "nVidia Tegra114 SPI driver"
  293. help
  294. Enable the nVidia Tegra114 SPI driver. This driver can be used to
  295. access the SPI NOR flash on platforms embedding this nVidia Tegra114
  296. IP core.
  297. This controller is different than the older SoCs SPI controller and
  298. also register interface get changed with this controller.
  299. config TEGRA20_SFLASH
  300. bool "nVidia Tegra20 Serial Flash controller driver"
  301. help
  302. Enable the nVidia Tegra20 Serial Flash controller driver. This driver
  303. can be used to access the SPI NOR flash on platforms embedding this
  304. nVidia Tegra20 IP core.
  305. config TEGRA20_SLINK
  306. bool "nVidia Tegra20/Tegra30 SLINK driver"
  307. help
  308. Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
  309. be used to access the SPI NOR flash on platforms embedding this
  310. nVidia Tegra20/Tegra30 IP cores.
  311. config TEGRA210_QSPI
  312. bool "nVidia Tegra210 QSPI driver"
  313. help
  314. Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
  315. be used to access SPI chips on platforms embedding this
  316. NVIDIA Tegra210 IP core.
  317. config TI_QSPI
  318. bool "TI QSPI driver"
  319. imply TI_EDMA3
  320. help
  321. Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
  322. This driver support spi flash single, quad and memory reads.
  323. config UNIPHIER_SPI
  324. bool "Socionext UniPhier SPI driver"
  325. depends on ARCH_UNIPHIER
  326. help
  327. Enable the Socionext UniPhier SPI driver. This driver can
  328. be used to access SPI chips on platforms embedding this
  329. UniPhier IP core.
  330. config XILINX_SPI
  331. bool "Xilinx SPI driver"
  332. help
  333. Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
  334. controller support 8 bit SPI transfers only, with or w/o FIFO.
  335. For more info on Xilinx SPI Register Definitions and Overview
  336. see driver file - drivers/spi/xilinx_spi.c
  337. config ZYNQ_SPI
  338. bool "Zynq SPI driver"
  339. depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
  340. help
  341. Enable the Zynq SPI driver. This driver can be used to
  342. access the SPI NOR flash on platforms embedding this Zynq
  343. SPI IP core.
  344. config ZYNQ_QSPI
  345. bool "Zynq QSPI driver"
  346. depends on ARCH_ZYNQ
  347. imply SPI_FLASH_BAR
  348. help
  349. Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
  350. used to access the SPI NOR flash on platforms embedding this
  351. Zynq QSPI IP core. This IP is used to connect the flash in
  352. 4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
  353. config ZYNQMP_GQSPI
  354. bool "Configure ZynqMP Generic QSPI"
  355. depends on ARCH_ZYNQMP || ARCH_VERSAL
  356. help
  357. This option is used to enable ZynqMP QSPI controller driver which
  358. is used to communicate with qspi flash devices.
  359. endif # if DM_SPI
  360. config FSL_ESPI
  361. bool "Freescale eSPI driver"
  362. imply SPI_FLASH_BAR
  363. help
  364. Enable the Freescale eSPI driver. This driver can be used to
  365. access the SPI interface and SPI NOR flash on platforms embedding
  366. this Freescale eSPI IP core.
  367. config SH_QSPI
  368. bool "Renesas Quad SPI driver"
  369. help
  370. Enable the Renesas Quad SPI controller driver. This driver can be
  371. used on Renesas SoCs.
  372. config MXC_SPI
  373. bool "MXC SPI Driver"
  374. help
  375. Enable the MXC SPI controller driver. This driver can be used
  376. on various i.MX SoCs such as i.MX31/35/51/6/7.
  377. endif # menu "SPI Support"