Merge tag 'tpm-030822' of https://source.denx.de/u-boot/custodians/u-boot-tpm
[platform/kernel/u-boot.git] / drivers / gpio / Kconfig
index a55e368..7e4c357 100644 (file)
@@ -48,6 +48,17 @@ config TPL_DM_GPIO
          particular GPIOs that they provide. The uclass interface
          is defined in include/asm-generic/gpio.h.
 
+config VPL_DM_GPIO
+       bool "Enable Driver Model for GPIO drivers in VPL"
+       depends on DM_GPIO && VPL_DM && VPL_GPIO
+       default y
+       help
+         Enable driver model for GPIO access in VPL. 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
@@ -57,6 +68,15 @@ config GPIO_HOG
          is a mechanism providing automatic GPIO request and config-
          uration as part of the gpio-controller's driver probe function.
 
+config SPL_GPIO_HOG
+       bool "Enable GPIO hog support in SPL"
+       depends on SPL_GPIO
+       help
+         Enable gpio hog support in SPL
+         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 DM_GPIO_LOOKUP_LABEL
        bool "Enable searching for gpio labelnames"
        depends on DM_GPIO
@@ -69,7 +89,7 @@ config DM_GPIO_LOOKUP_LABEL
 
 config SPL_DM_GPIO_LOOKUP_LABEL
        bool "Enable searching for gpio labelnames"
-       depends on DM_GPIO && SPL_DM && SPL_GPIO
+       depends on SPL_DM_GPIO
        help
          This option enables searching for gpio names in
          the defined gpio labels, if the search for the
@@ -259,6 +279,13 @@ config MXS_GPIO
        help
          Support GPIO controllers on i.MX23 and i.MX28 platforms
 
+config NPCM_GPIO
+       bool "Nuvoton NPCM GPIO driver"
+       depends on DM_GPIO
+       help
+         Support GPIO controllers on Nuvovon NPCM SoCs.
+         NPCM7xx/NPCM8xx contain 8 GPIO banks, each bank contains 32 pins.
+
 config OMAP_GPIO
        bool "TI OMAP GPIO driver"
        depends on ARCH_OMAP2PLUS
@@ -338,6 +365,7 @@ config SANDBOX_GPIO_COUNT
 config SUNXI_GPIO
        bool "Allwinner GPIO driver"
        depends on ARCH_SUNXI
+       select SPL_STRTO if SPL
        help
          Support the GPIO device in Allwinner SoCs.
 
@@ -463,7 +491,7 @@ config DM_PCA953X
 
 config SPL_DM_PCA953X
        bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports in SPL"
-       depends on DM_GPIO
+       depends on SPL_DM_GPIO
        help
          Say yes here to provide access to several register-oriented
          SMBus I/O expanders, made mostly by NXP or TI.  Compatible
@@ -525,7 +553,7 @@ config MT7620_GPIO
 
 config MT7621_GPIO
        bool "MediaTek MT7621 GPIO driver"
-       depends on DM_GPIO && SOC_MT7628
+       depends on DM_GPIO && (SOC_MT7621 || SOC_MT7628)
        default y
        help
          Say yes here to support MediaTek MT7621 compatible GPIOs.
@@ -570,4 +598,11 @@ config SLG7XL45106_I2C_GPO
           8-bit gpo expander, all gpo lines are controlled by writing
           value into data register.
 
+config TURRIS_OMNIA_MCU
+       bool "Turris Omnia MCU GPIO driver"
+       depends on DM_GPIO
+       default y if TARGET_TURRIS_OMNIA
+       help
+          Support for GPIOs on MCU connected to Turris Omnia via i2c.
+
 endif