Kconfig 14 KB

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