xref: /openbmc/linux/drivers/net/ethernet/mscc/Kconfig (revision 132db935)
1# SPDX-License-Identifier: (GPL-2.0 OR MIT)
2config NET_VENDOR_MICROSEMI
3	bool "Microsemi devices"
4	default y
5	help
6	  If you have a network (Ethernet) card belonging to this class, say Y.
7
8	  Note that the answer to this question doesn't directly affect the
9	  kernel: saying N will just cause the configurator to skip all
10	  the questions about Microsemi devices.
11
12if NET_VENDOR_MICROSEMI
13
14# Users should depend on NET_SWITCHDEV, HAS_IOMEM, PHYLIB and REGMAP_MMIO
15config MSCC_OCELOT_SWITCH_LIB
16	tristate
17	help
18	  This is a hardware support library for Ocelot network switches. It is
19	  used by switchdev as well as by DSA drivers.
20
21config MSCC_OCELOT_SWITCH
22	tristate "Ocelot switch driver"
23	depends on NET_SWITCHDEV
24	depends on GENERIC_PHY
25	depends on REGMAP_MMIO
26	depends on HAS_IOMEM
27	depends on PHYLIB
28	depends on OF_NET
29	select MSCC_OCELOT_SWITCH_LIB
30	help
31	  This driver supports the Ocelot network switch device as present on
32	  the Ocelot SoCs (VSC7514).
33
34endif # NET_VENDOR_MICROSEMI
35