summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/microchip/Kconfig
diff options
context:
space:
mode:
authorTristram Ha <Tristram.Ha@microchip.com>2019-09-10 16:18:34 +0300
committerDavid S. Miller <davem@davemloft.net>2019-09-12 13:36:12 +0300
commit20e03777d70923fe7eae0d7f043ef9488393ab95 (patch)
treeb49e7a62d1b86ba47f8f3836a78495ecea8558db /drivers/net/dsa/microchip/Kconfig
parent421bceb270e21b6db92988923445460c2e498888 (diff)
downloadlinux-20e03777d70923fe7eae0d7f043ef9488393ab95.tar.xz
net: dsa: microchip: add KSZ9477 I2C driver
Add KSZ9477 I2C driver support. The code ksz9477.c and ksz_common.c are used together to generate the I2C driver. Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com> [george.mccollister@gmail.com: bring up to date, use ksz_common regmap macros] Signed-off-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/Kconfig')
-rw-r--r--drivers/net/dsa/microchip/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/Kconfig b/drivers/net/dsa/microchip/Kconfig
index e1c23d1e91e6..1d7870c6df3c 100644
--- a/drivers/net/dsa/microchip/Kconfig
+++ b/drivers/net/dsa/microchip/Kconfig
@@ -9,6 +9,13 @@ menuconfig NET_DSA_MICROCHIP_KSZ9477
help
This driver adds support for Microchip KSZ9477 switch chips.
+config NET_DSA_MICROCHIP_KSZ9477_I2C
+ tristate "KSZ9477 series I2C connected switch driver"
+ depends on NET_DSA_MICROCHIP_KSZ9477 && I2C
+ select REGMAP_I2C
+ help
+ Select to enable support for registering switches configured through I2C.
+
config NET_DSA_MICROCHIP_KSZ9477_SPI
tristate "KSZ9477 series SPI connected switch driver"
depends on NET_DSA_MICROCHIP_KSZ9477 && SPI