2018-04-15 17:51:26 +00:00
|
|
|
menuconfig SPI
|
|
|
|
bool "SPI Support"
|
2019-10-16 12:34:13 +00:00
|
|
|
help
|
|
|
|
The "Serial Peripheral Interface" is a low level synchronous
|
|
|
|
protocol. Chips that support SPI can have data transfer rates
|
|
|
|
up to several tens of Mbit/sec. Chips are addressed with a
|
|
|
|
controller and a chipselect. Most SPI slaves don't support
|
|
|
|
dynamic device discovery; some are even write-only or read-only.
|
|
|
|
|
|
|
|
SPI is widely used by microcontrollers to talk with sensors,
|
|
|
|
eeprom and flash memory, codecs and various other controller
|
|
|
|
chips, analog to digital (and d-to-a) converters, and more.
|
|
|
|
MMC and SD cards can be accessed using SPI protocol; and for
|
|
|
|
DataFlash cards used in MMC sockets, SPI must always be used.
|
|
|
|
|
|
|
|
SPI is one of a family of similar protocols using a four wire
|
|
|
|
interface (select, clock, data in, data out) including Microwire
|
|
|
|
(half duplex), SSP, SSI, and PSP. This driver framework should
|
|
|
|
work with most such devices and controllers.
|
2018-04-15 17:51:26 +00:00
|
|
|
|
|
|
|
if SPI
|
2015-06-27 17:05:14 +00:00
|
|
|
|
2014-10-23 13:26:09 +00:00
|
|
|
config DM_SPI
|
|
|
|
bool "Enable Driver Model for SPI drivers"
|
|
|
|
depends on DM
|
|
|
|
help
|
2015-02-06 04:41:35 +00:00
|
|
|
Enable driver model for SPI. The SPI slave interface
|
|
|
|
(spi_setup_slave(), spi_xfer(), etc.) is then implemented by
|
|
|
|
the SPI uclass. Drivers provide methods to access the SPI
|
|
|
|
buses that they control. The uclass interface is defined in
|
|
|
|
include/spi.h. The existing spi_slave structure is attached
|
|
|
|
as 'parent data' to every slave on each bus. Slaves
|
|
|
|
typically use driver-private data instead of extending the
|
|
|
|
spi_slave structure.
|
2015-03-06 20:19:05 +00:00
|
|
|
|
2018-08-16 15:30:11 +00:00
|
|
|
config SPI_MEM
|
|
|
|
bool "SPI memory extension"
|
|
|
|
help
|
|
|
|
Enable this option if you want to enable the SPI memory extension.
|
|
|
|
This extension is meant to simplify interaction with SPI memories
|
|
|
|
by providing an high-level interface to send memory-like commands.
|
|
|
|
|
2022-08-19 09:01:08 +00:00
|
|
|
config SPI_DIRMAP
|
|
|
|
bool "SPI direct mapping"
|
|
|
|
depends on SPI_MEM
|
|
|
|
help
|
|
|
|
Enable the SPI direct mapping API. Most modern SPI controllers can
|
|
|
|
directly map a SPI memory (or a portion of the SPI memory) in the CPU
|
|
|
|
address space. Most of the time this brings significant performance
|
|
|
|
improvements as it automates the whole process of sending SPI memory
|
|
|
|
operations every time a new region is accessed.
|
|
|
|
|
2019-02-05 05:59:15 +00:00
|
|
|
if DM_SPI
|
|
|
|
|
2015-10-14 00:33:34 +00:00
|
|
|
config ALTERA_SPI
|
|
|
|
bool "Altera SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Altera SPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding this Altera
|
|
|
|
IP core. Please find details on the "Embedded Peripherals IP
|
|
|
|
User Guide" of Altera.
|
|
|
|
|
2022-01-23 15:48:12 +00:00
|
|
|
config APPLE_SPI
|
|
|
|
bool "Apple SPI driver"
|
|
|
|
default y if ARCH_APPLE
|
|
|
|
help
|
|
|
|
Enable the Apple SPI driver. This driver can be used to
|
|
|
|
access the SPI flash and keyboard on machines based on Apple SoCs.
|
|
|
|
|
2018-03-07 05:03:33 +00:00
|
|
|
config ATCSPI200_SPI
|
|
|
|
bool "Andestech ATCSPI200 SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Andestech ATCSPI200 SPI driver. This driver can be
|
|
|
|
used to access the SPI flash on AE3XX and AE250 platforms embedding
|
|
|
|
this Andestech IP core.
|
|
|
|
|
2016-03-16 08:59:58 +00:00
|
|
|
config ATH79_SPI
|
|
|
|
bool "Atheros SPI driver"
|
|
|
|
depends on ARCH_ATH79
|
|
|
|
help
|
|
|
|
Enable the Atheros ar7xxx/ar9xxx SoC SPI driver, it was used
|
|
|
|
to access SPI NOR flash and other SPI peripherals. This driver
|
|
|
|
uses driver model and requires a device tree binding to operate.
|
|
|
|
please refer to doc/device-tree-bindings/spi/spi-ath79.txt.
|
|
|
|
|
2019-06-18 08:51:50 +00:00
|
|
|
config ATMEL_QSPI
|
|
|
|
bool "Atmel Quad SPI Controller"
|
|
|
|
depends on ARCH_AT91
|
|
|
|
help
|
|
|
|
Enable the Atmel Quad SPI controller in master mode. This driver
|
|
|
|
does not support generic SPI. The implementation supports only the
|
|
|
|
spi-mem interface.
|
|
|
|
|
2016-10-28 06:17:49 +00:00
|
|
|
config ATMEL_SPI
|
|
|
|
bool "Atmel SPI driver"
|
2018-03-14 13:16:44 +00:00
|
|
|
default y if ARCH_AT91
|
2016-10-28 06:17:49 +00:00
|
|
|
help
|
|
|
|
This enables driver for the Atmel SPI Controller, present on
|
2017-07-05 13:25:22 +00:00
|
|
|
many AT91 (ARM) chips. This driver can be used to access
|
|
|
|
the SPI Flash, such as AT25DF321.
|
2016-10-28 06:17:49 +00:00
|
|
|
|
2018-01-20 01:13:38 +00:00
|
|
|
config BCM63XX_HSSPI
|
|
|
|
bool "BCM63XX HSSPI driver"
|
2020-01-07 19:14:12 +00:00
|
|
|
depends on (ARCH_BMIPS || ARCH_BCM68360 || \
|
|
|
|
ARCH_BCM6858 || ARCH_BCM63158)
|
2018-01-20 01:13:38 +00:00
|
|
|
help
|
|
|
|
Enable the BCM6328 HSSPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding this Broadcom
|
|
|
|
SPI core.
|
|
|
|
|
2018-01-23 16:14:58 +00:00
|
|
|
config BCM63XX_SPI
|
|
|
|
bool "BCM6348 SPI driver"
|
|
|
|
depends on ARCH_BMIPS
|
|
|
|
help
|
|
|
|
Enable the BCM6348/BCM6358 SPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding these Broadcom
|
|
|
|
SPI cores.
|
|
|
|
|
2018-06-08 21:59:45 +00:00
|
|
|
config BCMSTB_SPI
|
|
|
|
bool "BCMSTB SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Broadcom set-top box SPI driver. This driver can
|
|
|
|
be used to access the SPI flash on platforms embedding this
|
|
|
|
Broadcom SPI core.
|
|
|
|
|
2020-07-30 19:52:45 +00:00
|
|
|
config CORTINA_SFLASH
|
|
|
|
bool "Cortina-Access Serial Flash controller driver"
|
|
|
|
depends on DM_SPI && SPI_MEM
|
|
|
|
help
|
|
|
|
Enable the Cortina-Access Serial Flash controller driver. This driver
|
|
|
|
can be used to access the SPI NOR/NAND flash on platforms embedding this
|
|
|
|
Cortina-Access IP core.
|
|
|
|
|
2015-06-27 17:07:00 +00:00
|
|
|
config CADENCE_QSPI
|
|
|
|
bool "Cadence QSPI driver"
|
|
|
|
help
|
|
|
|
Enable the Cadence Quad-SPI (QSPI) driver. This driver can be
|
|
|
|
used to access the SPI NOR flash on platforms embedding this
|
|
|
|
Cadence IP core.
|
|
|
|
|
2022-03-30 22:07:23 +00:00
|
|
|
config HAS_CQSPI_REF_CLK
|
|
|
|
bool "Cadence QSPI static reference clock"
|
|
|
|
depends on CADENCE_QSPI
|
|
|
|
|
|
|
|
config CQSPI_REF_CLK
|
|
|
|
int "Cadence QSPI reference clock value in Hz"
|
|
|
|
depends on HAS_CQSPI_REF_CLK
|
|
|
|
|
2022-05-12 10:05:32 +00:00
|
|
|
config CADENCE_OSPI_VERSAL
|
|
|
|
bool "Configure Versal OSPI"
|
2022-09-19 12:21:03 +00:00
|
|
|
depends on (ARCH_VERSAL || ARCH_VERSAL_NET) && CADENCE_QSPI
|
2022-05-12 10:05:32 +00:00
|
|
|
imply DM_GPIO
|
|
|
|
help
|
|
|
|
This option is used to enable Versal OSPI DMA operations which
|
|
|
|
are used for ospi flash read using cadence qspi controller.
|
|
|
|
|
2019-03-13 20:46:46 +00:00
|
|
|
config CF_SPI
|
|
|
|
bool "ColdFire SPI driver"
|
|
|
|
help
|
|
|
|
Enable the ColdFire SPI driver. This driver can be used on
|
|
|
|
some m68k SoCs.
|
|
|
|
|
2020-05-26 08:04:26 +00:00
|
|
|
config DAVINCI_SPI
|
|
|
|
bool "Davinci & Keystone SPI driver"
|
|
|
|
depends on ARCH_DAVINCI || ARCH_KEYSTONE
|
|
|
|
help
|
|
|
|
Enable the Davinci SPI driver
|
|
|
|
|
2015-06-27 17:07:00 +00:00
|
|
|
config DESIGNWARE_SPI
|
|
|
|
bool "Designware SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Designware SPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding this Designware
|
|
|
|
IP core.
|
|
|
|
|
2015-06-27 10:02:19 +00:00
|
|
|
config EXYNOS_SPI
|
|
|
|
bool "Samsung Exynos SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Samsung Exynos SPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding this Samsung
|
|
|
|
Exynos IP core.
|
|
|
|
|
2015-06-27 08:47:06 +00:00
|
|
|
config FSL_DSPI
|
|
|
|
bool "Freescale DSPI driver"
|
|
|
|
help
|
|
|
|
Enable the Freescale DSPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash and SPI Data flash on platforms embedding
|
|
|
|
this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms
|
|
|
|
use this driver.
|
|
|
|
|
2020-05-25 18:54:19 +00:00
|
|
|
config FSL_QSPI
|
|
|
|
bool "Freescale QSPI driver"
|
|
|
|
imply SPI_FLASH_BAR
|
|
|
|
help
|
|
|
|
Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
|
|
|
|
used to access the SPI NOR flash on platforms embedding this
|
|
|
|
Freescale IP core.
|
|
|
|
|
2020-06-09 07:59:06 +00:00
|
|
|
config FSL_QSPI_AHB_FULL_MAP
|
|
|
|
bool "Use full AHB memory map space"
|
|
|
|
depends on FSL_QSPI
|
|
|
|
default y if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_IMX8M
|
|
|
|
help
|
|
|
|
Enable the Freescale QSPI driver to use full AHB memory map space for
|
|
|
|
flash access.
|
|
|
|
|
2022-06-08 21:21:36 +00:00
|
|
|
config GXP_SPI
|
|
|
|
bool "SPI driver for GXP"
|
|
|
|
imply SPI_FLASH_BAR
|
|
|
|
help
|
|
|
|
Enable support for SPI on GXP.
|
|
|
|
|
2015-06-27 10:13:27 +00:00
|
|
|
config ICH_SPI
|
|
|
|
bool "Intel ICH SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Intel ICH SPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding this Intel
|
|
|
|
ICH IP core.
|
|
|
|
|
2022-02-09 22:16:13 +00:00
|
|
|
config IPROC_QSPI
|
|
|
|
bool "Broadcom iProc QSPI Flash Controller driver"
|
|
|
|
help
|
|
|
|
Enable Broadcom iProc QSPI Flash Controller driver.
|
|
|
|
This driver can be used to access the SPI NOR flash.
|
|
|
|
|
2020-06-18 17:45:13 +00:00
|
|
|
config KIRKWOOD_SPI
|
|
|
|
bool "Marvell Kirkwood SPI Driver"
|
|
|
|
help
|
|
|
|
Enable support for SPI on various Marvell SoCs, such as
|
|
|
|
Kirkwood and Armada 375.
|
|
|
|
|
2018-11-22 10:01:05 +00:00
|
|
|
config MESON_SPIFC
|
|
|
|
bool "Amlogic Meson SPI Flash Controller driver"
|
|
|
|
depends on ARCH_MESON
|
|
|
|
help
|
|
|
|
Enable the Amlogic Meson SPI Flash Controller SPIFC) driver.
|
|
|
|
This driver can be used to access the SPI NOR flash chips on
|
|
|
|
Amlogic Meson SoCs.
|
|
|
|
|
2018-11-21 08:51:57 +00:00
|
|
|
config MPC8XX_SPI
|
|
|
|
bool "MPC8XX SPI Driver"
|
|
|
|
depends on MPC8xx
|
|
|
|
help
|
|
|
|
Enable support for SPI on MPC8XX
|
|
|
|
|
2019-04-28 20:28:53 +00:00
|
|
|
config MPC8XXX_SPI
|
|
|
|
bool "MPC8XXX SPI Driver"
|
|
|
|
help
|
|
|
|
Enable support for SPI on the MPC8XXX PowerPC SoCs.
|
|
|
|
|
2020-05-25 18:54:19 +00:00
|
|
|
config MSCC_BB_SPI
|
|
|
|
bool "MSCC bitbang SPI driver"
|
|
|
|
depends on SOC_VCOREIII
|
|
|
|
help
|
|
|
|
Enable MSCC bitbang SPI driver. This driver can be used on
|
|
|
|
MSCC SOCs.
|
|
|
|
|
2020-11-12 08:36:42 +00:00
|
|
|
config MT7620_SPI
|
|
|
|
bool "MediaTek MT7620 SPI driver"
|
|
|
|
depends on SOC_MT7620
|
|
|
|
help
|
|
|
|
Enable the MT7620 SPI driver. This driver can be used to access
|
|
|
|
generic SPI devices on MediaTek MT7620 SoC.
|
|
|
|
|
2018-08-16 08:48:48 +00:00
|
|
|
config MT7621_SPI
|
|
|
|
bool "MediaTek MT7621 SPI driver"
|
2022-05-20 03:23:08 +00:00
|
|
|
depends on SOC_MT7621 || SOC_MT7628
|
2018-08-16 08:48:48 +00:00
|
|
|
help
|
|
|
|
Enable the MT7621 SPI driver. This driver can be used to access
|
|
|
|
the SPI NOR flash on platforms embedding this Ralink / MediaTek
|
|
|
|
SPI core, like MT7621/7628/7688.
|
|
|
|
|
2021-01-20 07:31:33 +00:00
|
|
|
config MTK_SNOR
|
|
|
|
bool "Mediatek SPI-NOR controller driver"
|
|
|
|
depends on SPI_MEM
|
|
|
|
help
|
|
|
|
Enable the Mediatek SPINOR controller driver. This driver has
|
|
|
|
better read/write performance with NOR.
|
|
|
|
|
2019-07-22 11:39:01 +00:00
|
|
|
config MTK_SNFI_SPI
|
|
|
|
bool "Mediatek SPI memory controller driver"
|
|
|
|
depends on SPI_MEM
|
|
|
|
help
|
|
|
|
Enable the Mediatek SPI memory controller driver. This driver is
|
|
|
|
originally based on the MediaTek SNFI IP core. It can only be
|
|
|
|
used to access SPI memory devices like SPI-NOR or SPI-NAND on
|
|
|
|
platforms embedding this IP core, like MT7622/M7629.
|
|
|
|
|
2016-05-19 13:56:44 +00:00
|
|
|
config MVEBU_A3700_SPI
|
|
|
|
bool "Marvell Armada 3700 SPI driver"
|
2018-04-24 15:21:26 +00:00
|
|
|
select CLK_ARMADA_3720
|
2016-05-19 13:56:44 +00:00
|
|
|
help
|
|
|
|
Enable the Marvell Armada 3700 SPI driver. This driver can be
|
|
|
|
used to access the SPI NOR flash on platforms embedding this
|
|
|
|
Marvell IP core.
|
|
|
|
|
2020-05-25 17:54:23 +00:00
|
|
|
config MXS_SPI
|
|
|
|
bool "MXS SPI Driver"
|
|
|
|
help
|
|
|
|
Enable the MXS SPI controller driver. This driver can be used
|
|
|
|
on the i.MX23 and i.MX28 SoCs.
|
|
|
|
|
2021-06-23 17:15:15 +00:00
|
|
|
config SPI_MXIC
|
|
|
|
bool "Macronix MX25F0A SPI controller"
|
|
|
|
help
|
|
|
|
Enable the Macronix MX25F0A SPI controller driver. This driver
|
|
|
|
can be used to access the SPI flash on platforms embedding
|
|
|
|
this Macronix IP core.
|
|
|
|
|
2022-04-26 08:52:45 +00:00
|
|
|
config NPCM_FIU_SPI
|
|
|
|
bool "FIU driver for Nuvoton NPCM SoC"
|
|
|
|
help
|
|
|
|
This enables support for the Flash Interface Unit SPI controller
|
|
|
|
in master mode.
|
|
|
|
|
2019-12-17 23:09:58 +00:00
|
|
|
config NXP_FSPI
|
|
|
|
bool "NXP FlexSPI driver"
|
|
|
|
depends on SPI_MEM
|
|
|
|
help
|
|
|
|
Enable the NXP FlexSPI (FSPI) driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding this NXP IP core.
|
|
|
|
|
2020-07-30 11:56:18 +00:00
|
|
|
config OCTEON_SPI
|
|
|
|
bool "Octeon SPI driver"
|
2021-08-02 00:54:44 +00:00
|
|
|
depends on ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2
|
2020-07-30 11:56:18 +00:00
|
|
|
help
|
|
|
|
Enable the Octeon SPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on Octeon II/III and OcteonTX/TX2
|
|
|
|
SoC platforms.
|
|
|
|
|
2020-05-27 12:56:36 +00:00
|
|
|
config OMAP3_SPI
|
|
|
|
bool "McSPI driver for OMAP"
|
|
|
|
help
|
|
|
|
SPI master controller for OMAP24XX and later Multichannel SPI
|
|
|
|
(McSPI). This driver be used to access SPI chips on platforms
|
|
|
|
embedding this OMAP3 McSPI IP core.
|
|
|
|
|
2016-06-02 08:56:08 +00:00
|
|
|
config PIC32_SPI
|
|
|
|
bool "Microchip PIC32 SPI driver"
|
|
|
|
depends on MACH_PIC32
|
|
|
|
help
|
|
|
|
Enable the Microchip PIC32 SPI driver. This driver can be used
|
|
|
|
to access the SPI NOR flash, MMC-over-SPI on platforms based on
|
|
|
|
Microchip PIC32 family devices.
|
|
|
|
|
2018-08-31 14:28:29 +00:00
|
|
|
config PL022_SPI
|
|
|
|
bool "ARM AMBA PL022 SSP controller driver"
|
|
|
|
depends on ARM
|
|
|
|
help
|
|
|
|
This selects the ARM(R) AMBA(R) PrimeCell PL022 SSP
|
|
|
|
controller. If you have an embedded system with an AMBA(R)
|
|
|
|
bus and a PL022 controller, say Y or M here.
|
|
|
|
|
2020-10-08 20:05:09 +00:00
|
|
|
config SPI_QUP
|
|
|
|
bool "Qualcomm SPI controller with QUP interface"
|
|
|
|
depends on ARCH_IPQ40XX
|
|
|
|
help
|
|
|
|
Qualcomm Universal Peripheral (QUP) core is an AHB slave that
|
|
|
|
provides a common data path (an output FIFO and an input FIFO)
|
|
|
|
for serial peripheral interface (SPI) mini-core. SPI in master
|
|
|
|
mode supports up to 50MHz, up to four chip selects, programmable
|
|
|
|
data path from 4 bits to 32 bits and numerous protocol variants.
|
|
|
|
|
2017-11-29 05:29:46 +00:00
|
|
|
config RENESAS_RPC_SPI
|
|
|
|
bool "Renesas RPC SPI driver"
|
2019-05-04 16:52:33 +00:00
|
|
|
depends on RCAR_GEN3 || RZA1
|
2019-02-05 05:59:28 +00:00
|
|
|
imply SPI_FLASH_BAR
|
2017-11-29 05:29:46 +00:00
|
|
|
help
|
|
|
|
Enable the Renesas RPC SPI driver, used to access SPI NOR flash
|
|
|
|
on Renesas RCar Gen3 SoCs. This uses driver model and requires a
|
|
|
|
device tree binding to operate.
|
|
|
|
|
2021-08-05 08:26:38 +00:00
|
|
|
config ROCKCHIP_SFC
|
|
|
|
bool "Rockchip SFC Driver"
|
|
|
|
help
|
|
|
|
Enable the Rockchip SFC Driver for SPI NOR flash. This device is
|
|
|
|
a limited purpose SPI controller for driving NOR flash on certain
|
|
|
|
Rockchip SoCs. This uses driver model and requires a device tree
|
|
|
|
binding to operate.
|
|
|
|
|
2015-09-02 01:19:37 +00:00
|
|
|
config ROCKCHIP_SPI
|
|
|
|
bool "Rockchip SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Rockchip SPI driver, used to access SPI NOR flash and
|
|
|
|
other SPI peripherals (such as the Chrome OS EC) on Rockchip SoCs.
|
|
|
|
This uses driver model and requires a device tree binding to
|
|
|
|
operate.
|
|
|
|
|
2015-03-06 20:19:05 +00:00
|
|
|
config SANDBOX_SPI
|
|
|
|
bool "Sandbox SPI driver"
|
|
|
|
depends on SANDBOX && DM
|
|
|
|
help
|
|
|
|
Enable SPI support for sandbox. This is an emulation of a real SPI
|
|
|
|
bus. Devices can be attached to the bus using the device tree
|
|
|
|
which specifies the driver to use. As an example, see this device
|
|
|
|
tree fragment from sandbox.dts. It shows that the SPI bus has a
|
|
|
|
single flash device on chip select 0 which is emulated by the driver
|
|
|
|
for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c.
|
|
|
|
|
|
|
|
spi@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0>;
|
|
|
|
compatible = "sandbox,spi";
|
|
|
|
cs-gpios = <0>, <&gpio_a 0>;
|
|
|
|
flash@0 {
|
|
|
|
reg = <0>;
|
2019-05-18 17:59:49 +00:00
|
|
|
compatible = "spansion,m25p16", "jedec,spi-nor";
|
2015-03-06 20:19:05 +00:00
|
|
|
spi-max-frequency = <40000000>;
|
|
|
|
sandbox,filename = "spi.bin";
|
|
|
|
};
|
2015-06-27 17:07:00 +00:00
|
|
|
};
|
2015-06-26 23:11:11 +00:00
|
|
|
|
spi: aspeed: Add ASPEED SPI controller driver
Add ASPEED BMC FMC/SPI memory controller driver with
spi-mem interface for AST2500 and AST2600 platform.
There are three SPI memory controllers embedded in an ASPEED SoC.
- FMC: Named as Firmware Memory Controller. After AC on, MCU ROM
fetches initial device boot image from FMC chip select(CS) 0.
- SPI1: Play the role of a SPI Master controller. Or, there is a
dedicated path for HOST(X86) to access its BIOS flash mounted
under BMC. spi-aspeed-smc.c implements the control sequence when
SPI1 is a SPI master.
- SPI2: It is a pure SPI flash controller. For most scenarios, flashes
mounted under it are for pure storage purpose.
ASPEED SPI controller supports 1-1-1, 1-1-2 and 1-1-4 SPI flash mode.
Three types of command mode are supported, normal mode, command
read/write mode and user mode.
- Normal mode: Default mode. After power on, normal read command 03h or
13h is used to fetch boot image from SPI flash.
- AST2500: Only 03h command can be used after power on
or reset.
- AST2600: If FMC04[6:4] is set, 13h command is used,
otherwise, 03h command.
The address length is decided by FMC04[2:0].
- Command mode: SPI controller can send command and address
automatically when CPU read/write the related remapped
or decoded address area. The command used by this mode
can be configured by FMC10/14/18[23:16]. Also, the
address length is decided by FMC04[2:0]. This mode will
be implemented in the following patch series.
- User mode: It is a traditional and pure SPI operation, where
SPI transmission is controlled by CPU. It is the main
mode in this patch.
Each SPI controller in ASPEED SoC has its own decoded address mapping.
Within each SPI controller decoded address, driver can assign a specific
address region for each CS of a SPI controller. The decoded address
cannot overlap to each other. With normal mode and command mode, the
decoded address accessed by the CPU determines which CS is active.
When user mode is adopted, the CS decoded address is a FIFO, CPU can
send/receive any SPI transmission by accessing the related decoded
address for the target CS.
This patch only implements user mode initially. Command read/write
mode will be implemented in the following patches.
Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
2022-08-19 09:01:04 +00:00
|
|
|
config SPI_ASPEED_SMC
|
|
|
|
bool "ASPEED SPI flash controller driver"
|
|
|
|
depends on DM_SPI && SPI_MEM
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable ASPEED SPI flash controller driver for AST2500
|
|
|
|
and AST2600 SoCs.
|
|
|
|
|
2019-07-17 04:23:43 +00:00
|
|
|
config SPI_SIFIVE
|
|
|
|
bool "SiFive SPI driver"
|
|
|
|
help
|
|
|
|
This driver supports the SiFive SPI IP. If unsure say N.
|
|
|
|
Enable the SiFive SPI controller driver.
|
|
|
|
|
|
|
|
The SiFive SPI controller driver is found on various SiFive SoCs.
|
|
|
|
|
2020-05-26 03:04:37 +00:00
|
|
|
config SOFT_SPI
|
|
|
|
bool "Soft SPI driver"
|
|
|
|
help
|
|
|
|
Enable Soft SPI driver. This driver is to use GPIO simulate
|
|
|
|
the SPI protocol.
|
|
|
|
|
2019-02-27 14:32:13 +00:00
|
|
|
config SPI_SUNXI
|
|
|
|
bool "Allwinner SoC SPI controllers"
|
2019-10-16 12:35:56 +00:00
|
|
|
default ARCH_SUNXI
|
2019-02-27 14:32:13 +00:00
|
|
|
help
|
|
|
|
Enable the Allwinner SoC SPi controller driver.
|
|
|
|
|
|
|
|
Same controller driver can reuse in all Allwinner SoC variants.
|
|
|
|
|
2017-01-22 15:04:30 +00:00
|
|
|
config STM32_QSPI
|
|
|
|
bool "STM32F7 QSPI driver"
|
2019-04-30 14:09:18 +00:00
|
|
|
depends on STM32F4 || STM32F7 || ARCH_STM32MP
|
2017-01-22 15:04:30 +00:00
|
|
|
help
|
|
|
|
Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
|
|
|
|
used to access the SPI NOR flash chips on platforms embedding
|
|
|
|
this ST IP core.
|
|
|
|
|
2019-04-30 16:08:28 +00:00
|
|
|
config STM32_SPI
|
|
|
|
bool "STM32 SPI driver"
|
|
|
|
depends on ARCH_STM32MP
|
|
|
|
help
|
|
|
|
Enable the STM32 Serial Peripheral Interface (SPI) driver for STM32MP
|
|
|
|
SoCs. This uses driver model and requires a device tree binding to
|
|
|
|
operate.
|
|
|
|
|
2015-06-27 10:27:53 +00:00
|
|
|
config TEGRA114_SPI
|
|
|
|
bool "nVidia Tegra114 SPI driver"
|
|
|
|
help
|
|
|
|
Enable the nVidia Tegra114 SPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding this nVidia Tegra114
|
|
|
|
IP core.
|
|
|
|
|
|
|
|
This controller is different than the older SoCs SPI controller and
|
|
|
|
also register interface get changed with this controller.
|
|
|
|
|
2015-06-27 10:34:05 +00:00
|
|
|
config TEGRA20_SFLASH
|
|
|
|
bool "nVidia Tegra20 Serial Flash controller driver"
|
|
|
|
help
|
|
|
|
Enable the nVidia Tegra20 Serial Flash controller driver. This driver
|
|
|
|
can be used to access the SPI NOR flash on platforms embedding this
|
|
|
|
nVidia Tegra20 IP core.
|
|
|
|
|
2015-06-27 10:37:54 +00:00
|
|
|
config TEGRA20_SLINK
|
|
|
|
bool "nVidia Tegra20/Tegra30 SLINK driver"
|
|
|
|
help
|
|
|
|
Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
|
|
|
|
be used to access the SPI NOR flash on platforms embedding this
|
|
|
|
nVidia Tegra20/Tegra30 IP cores.
|
|
|
|
|
2015-10-12 21:50:54 +00:00
|
|
|
config TEGRA210_QSPI
|
|
|
|
bool "nVidia Tegra210 QSPI driver"
|
|
|
|
help
|
|
|
|
Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
|
|
|
|
be used to access SPI chips on platforms embedding this
|
|
|
|
NVIDIA Tegra210 IP core.
|
|
|
|
|
2019-04-16 16:01:59 +00:00
|
|
|
config TI_QSPI
|
|
|
|
bool "TI QSPI driver"
|
|
|
|
imply TI_EDMA3
|
|
|
|
help
|
|
|
|
Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
|
|
|
|
This driver support spi flash single, quad and memory reads.
|
|
|
|
|
2019-07-05 01:03:18 +00:00
|
|
|
config UNIPHIER_SPI
|
|
|
|
bool "Socionext UniPhier SPI driver"
|
|
|
|
depends on ARCH_UNIPHIER
|
|
|
|
help
|
|
|
|
Enable the Socionext UniPhier SPI driver. This driver can
|
|
|
|
be used to access SPI chips on platforms embedding this
|
|
|
|
UniPhier IP core.
|
|
|
|
|
2015-06-26 23:02:43 +00:00
|
|
|
config XILINX_SPI
|
|
|
|
bool "Xilinx SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Xilinx SPI driver from the Xilinx EDK. This SPI
|
|
|
|
controller support 8 bit SPI transfers only, with or w/o FIFO.
|
|
|
|
For more info on Xilinx SPI Register Definitions and Overview
|
|
|
|
see driver file - drivers/spi/xilinx_spi.c
|
|
|
|
|
2015-06-26 19:21:38 +00:00
|
|
|
config ZYNQ_SPI
|
|
|
|
bool "Zynq SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Zynq SPI driver. This driver can be used to
|
|
|
|
access the SPI NOR flash on platforms embedding this Zynq
|
|
|
|
SPI IP core.
|
2015-06-27 17:05:14 +00:00
|
|
|
|
2015-08-15 18:49:38 +00:00
|
|
|
config ZYNQ_QSPI
|
|
|
|
bool "Zynq QSPI driver"
|
2019-02-05 05:59:28 +00:00
|
|
|
imply SPI_FLASH_BAR
|
2015-08-15 18:49:38 +00:00
|
|
|
help
|
|
|
|
Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
|
|
|
|
used to access the SPI NOR flash on platforms embedding this
|
|
|
|
Zynq QSPI IP core. This IP is used to connect the flash in
|
|
|
|
4-bit qspi, 8-bit dual stacked and shared 4-bit dual parallel.
|
|
|
|
|
2018-07-04 12:01:23 +00:00
|
|
|
config ZYNQMP_GQSPI
|
|
|
|
bool "Configure ZynqMP Generic QSPI"
|
|
|
|
help
|
|
|
|
This option is used to enable ZynqMP QSPI controller driver which
|
|
|
|
is used to communicate with qspi flash devices.
|
|
|
|
|
2015-06-27 17:07:00 +00:00
|
|
|
endif # if DM_SPI
|
|
|
|
|
2015-06-27 09:51:36 +00:00
|
|
|
config FSL_ESPI
|
|
|
|
bool "Freescale eSPI driver"
|
2019-10-31 06:34:40 +00:00
|
|
|
imply SPI_FLASH_BAR
|
2015-06-27 09:51:36 +00:00
|
|
|
help
|
|
|
|
Enable the Freescale eSPI driver. This driver can be used to
|
|
|
|
access the SPI interface and SPI NOR flash on platforms embedding
|
|
|
|
this Freescale eSPI IP core.
|
|
|
|
|
2018-02-07 00:42:17 +00:00
|
|
|
config SH_QSPI
|
|
|
|
bool "Renesas Quad SPI driver"
|
|
|
|
help
|
|
|
|
Enable the Renesas Quad SPI controller driver. This driver can be
|
|
|
|
used on Renesas SoCs.
|
|
|
|
|
2018-02-07 00:42:19 +00:00
|
|
|
config MXC_SPI
|
|
|
|
bool "MXC SPI Driver"
|
|
|
|
help
|
|
|
|
Enable the MXC SPI controller driver. This driver can be used
|
|
|
|
on various i.MX SoCs such as i.MX31/35/51/6/7.
|
|
|
|
|
2021-06-04 09:44:27 +00:00
|
|
|
config SYNQUACER_SPI
|
|
|
|
bool "Socionext SynQuacer HS-SPI driver"
|
|
|
|
depends on ARCH_SYNQUACER
|
|
|
|
help
|
|
|
|
Enable the Socionext HS-SPI driver for SynQuacer. This driver can
|
|
|
|
be used to access the SPI interface and SPI NOR flash on platforms
|
|
|
|
embedding this HS-SPI IP core.
|
|
|
|
|
2018-04-15 17:51:26 +00:00
|
|
|
endif # menu "SPI Support"
|