xref: /openbmc/linux/drivers/net/dsa/microchip/Kconfig (revision 50df3be7)
1# SPDX-License-Identifier: GPL-2.0-only
2config NET_DSA_MICROCHIP_KSZ_COMMON
3	tristate
4
5menuconfig NET_DSA_MICROCHIP_KSZ9477
6	tristate "Microchip KSZ9477 series switch support"
7	depends on NET_DSA
8	select NET_DSA_MICROCHIP_KSZ_COMMON
9	help
10	  This driver adds support for Microchip KSZ9477 switch chips.
11
12config NET_DSA_MICROCHIP_KSZ9477_I2C
13	tristate "KSZ9477 series I2C connected switch driver"
14	depends on NET_DSA_MICROCHIP_KSZ9477 && I2C
15	select REGMAP_I2C
16	help
17	  Select to enable support for registering switches configured through I2C.
18
19config NET_DSA_MICROCHIP_KSZ9477_SPI
20	tristate "KSZ9477 series SPI connected switch driver"
21	depends on NET_DSA_MICROCHIP_KSZ9477 && SPI
22	select REGMAP_SPI
23	help
24	  Select to enable support for registering switches configured through SPI.
25
26menuconfig NET_DSA_MICROCHIP_KSZ8795
27	tristate "Microchip KSZ8795 series switch support"
28	depends on NET_DSA
29	select NET_DSA_MICROCHIP_KSZ_COMMON
30	help
31	  This driver adds support for Microchip KSZ8795 switch chips.
32
33config NET_DSA_MICROCHIP_KSZ8795_SPI
34	tristate "KSZ8795 series SPI connected switch driver"
35	depends on NET_DSA_MICROCHIP_KSZ8795 && SPI
36	select REGMAP_SPI
37	help
38	  This driver accesses KSZ8795 chip through SPI.
39
40	  It is required to use the KSZ8795 switch driver as the only access
41	  is through SPI.
42