spi: nuvoton: add NPCM PSPI controller driver
[platform/kernel/u-boot.git] / drivers / spi / Kconfig
index d07e9a2..fcf67de 100644 (file)
@@ -40,6 +40,16 @@ config SPI_MEM
          This extension is meant to simplify interaction with SPI memories
          by providing an high-level interface to send memory-like commands.
 
          This extension is meant to simplify interaction with SPI memories
          by providing an high-level interface to send memory-like commands.
 
+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.
+
 if DM_SPI
 
 config ALTERA_SPI
 if DM_SPI
 
 config ALTERA_SPI
@@ -50,6 +60,13 @@ config ALTERA_SPI
          IP core. Please find details on the "Embedded Peripherals IP
          User Guide" of Altera.
 
          IP core. Please find details on the "Embedded Peripherals IP
          User Guide" of Altera.
 
+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.
+
 config ATCSPI200_SPI
        bool "Andestech ATCSPI200 SPI driver"
        help
 config ATCSPI200_SPI
        bool "Andestech ATCSPI200 SPI driver"
        help
@@ -121,6 +138,22 @@ config CADENCE_QSPI
          used to access the SPI NOR flash on platforms embedding this
          Cadence IP core.
 
          used to access the SPI NOR flash on platforms embedding this
          Cadence IP core.
 
+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
+
+config CADENCE_OSPI_VERSAL
+       bool "Configure Versal OSPI"
+       depends on (ARCH_VERSAL || ARCH_VERSAL_NET) && CADENCE_QSPI
+       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.
+
 config CF_SPI
         bool "ColdFire SPI driver"
         help
 config CF_SPI
         bool "ColdFire SPI driver"
         help
@@ -171,6 +204,12 @@ config FSL_QSPI_AHB_FULL_MAP
          Enable the Freescale QSPI driver to use full AHB memory map space for
          flash access.
 
          Enable the Freescale QSPI driver to use full AHB memory map space for
          flash access.
 
+config GXP_SPI
+       bool "SPI driver for GXP"
+       imply SPI_FLASH_BAR
+       help
+         Enable support for SPI on GXP.
+
 config ICH_SPI
        bool "Intel ICH SPI driver"
        help
 config ICH_SPI
        bool "Intel ICH SPI driver"
        help
@@ -178,6 +217,12 @@ config ICH_SPI
          access the SPI NOR flash on platforms embedding this Intel
          ICH IP core.
 
          access the SPI NOR flash on platforms embedding this Intel
          ICH IP core.
 
+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.
+
 config KIRKWOOD_SPI
        bool "Marvell Kirkwood SPI Driver"
        help
 config KIRKWOOD_SPI
        bool "Marvell Kirkwood SPI Driver"
        help
@@ -219,7 +264,7 @@ config MT7620_SPI
 
 config MT7621_SPI
        bool "MediaTek MT7621 SPI driver"
 
 config MT7621_SPI
        bool "MediaTek MT7621 SPI driver"
-       depends on SOC_MT7628
+       depends on SOC_MT7621 || SOC_MT7628
        help
          Enable the MT7621 SPI driver. This driver can be used to access
          the SPI NOR flash on platforms embedding this Ralink / MediaTek
        help
          Enable the MT7621 SPI driver. This driver can be used to access
          the SPI NOR flash on platforms embedding this Ralink / MediaTek
@@ -241,6 +286,14 @@ config MTK_SNFI_SPI
          used to access SPI memory devices like SPI-NOR or SPI-NAND on
          platforms embedding this IP core, like MT7622/M7629.
 
          used to access SPI memory devices like SPI-NOR or SPI-NAND on
          platforms embedding this IP core, like MT7622/M7629.
 
+config MTK_SPIM
+       bool "Mediatek SPI-MEM master controller driver"
+       depends on SPI_MEM
+       help
+         Enable MediaTek SPI-MEM master controller driver. This driver mainly
+         supports SPI flashes. You can use single, dual or quad mode
+         transmission on this controller.
+
 config MVEBU_A3700_SPI
        bool "Marvell Armada 3700 SPI driver"
        select CLK_ARMADA_3720
 config MVEBU_A3700_SPI
        bool "Marvell Armada 3700 SPI driver"
        select CLK_ARMADA_3720
@@ -262,6 +315,17 @@ config SPI_MXIC
          can be used to access the SPI flash on platforms embedding
          this Macronix IP core.
 
          can be used to access the SPI flash on platforms embedding
          this Macronix IP core.
 
+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.
+
+config NPCM_PSPI
+       bool "PSPI driver for Nuvoton NPCM SoC"
+       help
+         PSPI driver for NPCM SoC
+
 config NXP_FSPI
        bool "NXP FlexSPI driver"
        depends on SPI_MEM
 config NXP_FSPI
        bool "NXP FlexSPI driver"
        depends on SPI_MEM
@@ -360,6 +424,14 @@ config SANDBOX_SPI
                };
          };
 
                };
          };
 
+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.
+
 config SPI_SIFIVE
        bool "SiFive SPI driver"
        help
 config SPI_SIFIVE
        bool "SiFive SPI driver"
        help