]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: at91: Add MCHP_LAN966X_PCI dependency
authorHerve Codina <herve.codina@bootlin.com>
Mon, 11 May 2026 16:13:49 +0000 (18:13 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 9 Jun 2026 11:00:31 +0000 (13:00 +0200)
The AT91 I2C driver depends on ARCH_MICROCHIP.

This I2C controller can be used by the LAN966x PCI device and so
it needs to be available when the LAN966x PCI device is enabled.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Acked-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/Kconfig

index 30cb64ed4310922b3c3552d80ef2375682b9cc1a..3123ab75600b8352f59abd38062ec9e2e971b803 100644 (file)
@@ -417,7 +417,7 @@ config I2C_ASPEED
 
 config I2C_AT91
        tristate "Atmel AT91 I2C Two-Wire interface (TWI)"
-       depends on ARCH_MICROCHIP || COMPILE_TEST
+       depends on ARCH_MICROCHIP || MCHP_LAN966X_PCI || COMPILE_TEST
        help
          This supports the use of the I2C interface on Atmel AT91
          processors.