]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
gpio: Correct dependencies for MCP230xx
authorCharles Perry <charles.perry@microchip.com>
Thu, 7 May 2026 18:51:22 +0000 (11:51 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 14 May 2026 21:54:17 +0000 (15:54 -0600)
This driver depends on DM_I2C and DM_SPI, add it.

Fixes: 3b639f643889 ("gpio: mcp230xx: Add support for models with SPI interface.")
Signed-off-by: Charles Perry <charles.perry@microchip.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
drivers/gpio/Kconfig

index 0b5466b39b8dc603bd4edb43fdaefb40a59c7dce..5084af2326962adff757ecce51cddb17bcdcbd47 100644 (file)
@@ -309,9 +309,9 @@ config MAX77663_GPIO
 
 config MCP230XX_GPIO
        bool "MCP230XX GPIO driver"
-       depends on DM
+       depends on DM && DM_I2C && DM_SPI
        help
-         Support for Microchip's MCP230XX I2C connected GPIO devices.
+         Support for Microchip's MCP230XX I2C and SPI connected GPIO devices.
          The following chips are supported:
           - MCP23008
           - MCP23017