Merge tag 'u-boot-amlogic-20200511' of https://gitlab.denx.de/u-boot/custodians/u...
[oweals/u-boot.git] / drivers / gpio / Kconfig
index e36a8abc426e8da6a669bf6ed73306123ab3f717..2081520f42ebd46f9032d8058ea153214bdb9299 100644 (file)
@@ -14,6 +14,38 @@ config DM_GPIO
          particular GPIOs that they provide. The uclass interface
          is defined in include/asm-generic/gpio.h.
 
+config SPL_DM_GPIO
+       bool "Enable Driver Model for GPIO drivers in SPL"
+       depends on DM_GPIO && SPL_DM && SPL_GPIO_SUPPORT
+       default y
+       help
+         Enable driver model for GPIO access in SPL. The standard GPIO
+         interface (gpio_get_value(), etc.) is then implemented by
+         the GPIO uclass. Drivers provide methods to query the
+         particular GPIOs that they provide. The uclass interface
+         is defined in include/asm-generic/gpio.h.
+
+config TPL_DM_GPIO
+       bool "Enable Driver Model for GPIO drivers in TPL"
+       depends on DM_GPIO && TPL_DM && TPL_GPIO_SUPPORT
+       default y
+       help
+         Enable driver model for GPIO access in TPL. The standard GPIO
+         interface (gpio_get_value(), etc.) is then implemented by
+         the GPIO uclass. Drivers provide methods to query the
+         particular GPIOs that they provide. The uclass interface
+         is defined in include/asm-generic/gpio.h.
+
+config GPIO_HOG
+       bool "Enable GPIO hog support"
+       depends on DM_GPIO
+       default n
+       help
+         Enable gpio hog support
+         The GPIO chip may contain GPIO hog definitions. GPIO hogging
+         is a mechanism providing automatic GPIO request and config-
+         uration as part of the gpio-controller's driver probe function.
+
 config ALTERA_PIO
        bool "Altera PIO driver"
        depends on DM_GPIO
@@ -23,10 +55,19 @@ config ALTERA_PIO
 
 config BCM6345_GPIO
        bool "BCM6345 GPIO driver"
-       depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158)
+       depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM68360 || \
+                              ARCH_BCM6858 || ARCH_BCM63158)
        help
          This driver supports the GPIO banks on BCM6345 SoCs.
 
+config CORTINA_GPIO
+       bool "Cortina-Access GPIO driver"
+       depends on DM_GPIO && CORTINA_PLATFORM
+       help
+         Enable support for the GPIO controller in Cortina CAxxxx SoCs.
+         This driver supports all CPU ISA variants supported by Cortina
+         Access CAxxxx SoCs.
+
 config DWAPB_GPIO
        bool "DWAPB GPIO driver"
        depends on DM && DM_GPIO
@@ -72,6 +113,15 @@ config INTEL_BROADWELL_GPIO
          driver from the common Intel ICH6 driver. It supports a total of
          95 GPIOs which can be configured from the device tree.
 
+config INTEL_GPIO
+       bool "Intel generic GPIO driver"
+       depends on DM_GPIO
+       help
+         Say yes here to select Intel generic GPIO driver. This controller
+         supports recent chips (e.g. Apollo Lake). It permits basic GPIO
+         control including setting pins to input/output. It makes use of its
+         parent pinctrl driver to actually effect changes.
+
 config INTEL_ICH6_GPIO
        bool "Intel ICH6 compatible legacy GPIO driver"
        depends on DM_GPIO
@@ -129,6 +179,11 @@ config MXC_GPIO
        help
          Support GPIO controllers on various i.MX platforms
 
+config MXS_GPIO
+       bool "Freescale/NXP MXS GPIO driver"
+       help
+         Support GPIO controllers on i.MX23 and i.MX28 platforms
+
 config OMAP_GPIO
        bool "TI OMAP GPIO driver"
        depends on ARCH_OMAP2PLUS
@@ -205,6 +260,12 @@ config SANDBOX_GPIO_COUNT
          of 'anonymous' GPIOs that do not belong to any device or bank.
          Select a suitable value depending on your needs.
 
+config SUNXI_GPIO
+       bool "Allwinner GPIO driver"
+       depends on ARCH_SUNXI
+       help
+         Support the GPIO device in Allwinner SoCs.
+
 config XILINX_GPIO
        bool "Xilinx GPIO driver"
        depends on DM_GPIO
@@ -255,15 +316,22 @@ config PIC32_GPIO
        help
          Say yes here to support Microchip PIC32 GPIOs.
 
-config STM32F7_GPIO
+config STM32_GPIO
        bool "ST STM32 GPIO driver"
        depends on DM_GPIO && (STM32 || ARCH_STM32MP)
        default y
        help
          Device model driver support for STM32 GPIO controller. It should be
-         usable on many stm32 families like stm32f4 & stm32H7.
+         usable on many stm32 families like stm32f4/f7/h7 and stm32mp1.
          Tested on STM32F7.
 
+config SIFIVE_GPIO
+       bool "SiFive GPIO driver"
+       depends on DM_GPIO
+       help
+         Device model driver for GPIO controller present in SiFive FU540 SoC. This
+         driver enables GPIO interface on HiFive Unleashed A00 board.
+
 config MVEBU_GPIO
        bool "Marvell MVEBU GPIO driver"
        depends on DM_GPIO && ARCH_MVEBU
@@ -273,7 +341,7 @@ config MVEBU_GPIO
 
 config ZYNQ_GPIO
        bool "Zynq GPIO driver"
-       depends on DM_GPIO && (ARCH_ZYNQ || ARCH_ZYNQMP)
+       depends on DM_GPIO && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL)
        default y
        help
          Supports GPIO access on Zynq SoC.
@@ -355,6 +423,14 @@ config MPC8XXX_GPIO
          value setting, the open-drain feature, which can configure individual
          GPIOs to work as open-drain outputs, is supported.
 
+config MPC83XX_SPISEL_BOOT
+       bool "Freescale MPC83XX SPISEL_BOOT driver"
+       depends on DM_GPIO && ARCH_MPC830X
+       help
+         GPIO driver to set/clear dedicated SPISEL_BOOT output on MPC83XX.
+
+         This pin is typically used as spi chip select to a spi nor flash.
+
 config MT7621_GPIO
        bool "MediaTek MT7621 GPIO driver"
        depends on DM_GPIO && SOC_MT7628