xref: /openbmc/linux/drivers/net/ethernet/mscc/Kconfig (revision f99f22e0)
1a556c76aSAlexandre Belloni# SPDX-License-Identifier: (GPL-2.0 OR MIT)
2a556c76aSAlexandre Belloniconfig NET_VENDOR_MICROSEMI
3a556c76aSAlexandre Belloni	bool "Microsemi devices"
4a556c76aSAlexandre Belloni	default y
5a556c76aSAlexandre Belloni	help
6a556c76aSAlexandre Belloni	  If you have a network (Ethernet) card belonging to this class, say Y.
7a556c76aSAlexandre Belloni
8a556c76aSAlexandre Belloni	  Note that the answer to this question doesn't directly affect the
9a556c76aSAlexandre Belloni	  kernel: saying N will just cause the configurator to skip all
10a556c76aSAlexandre Belloni	  the questions about Microsemi devices.
11a556c76aSAlexandre Belloni
12a556c76aSAlexandre Belloniif NET_VENDOR_MICROSEMI
13a556c76aSAlexandre Belloni
14e4bd44e8SVladimir Oltean# Users should depend on NET_SWITCHDEV, HAS_IOMEM, BRIDGE
15f4d0323bSVladimir Olteanconfig MSCC_OCELOT_SWITCH_LIB
16*f99f22e0SArnd Bergmann	depends on PTP_1588_CLOCK_OPTIONAL
17907310ceSArnd Bergmann	select NET_DEVLINK
1889e35f66SVladimir Oltean	select REGMAP_MMIO
1959756555SVladimir Oltean	select PACKING
20e6e12df6SVladimir Oltean	select PHYLINK
21f4d0323bSVladimir Oltean	tristate
22a556c76aSAlexandre Belloni	help
23f4d0323bSVladimir Oltean	  This is a hardware support library for Ocelot network switches. It is
24f4d0323bSVladimir Oltean	  used by switchdev as well as by DSA drivers.
25a556c76aSAlexandre Belloni
2614addfb6SVladimir Olteanconfig MSCC_OCELOT_SWITCH
2714addfb6SVladimir Oltean	tristate "Ocelot switch driver"
28e5f31552SArnd Bergmann	depends on PTP_1588_CLOCK_OPTIONAL
29e4bd44e8SVladimir Oltean	depends on BRIDGE || BRIDGE=n
30f4d0323bSVladimir Oltean	depends on NET_SWITCHDEV
31f4d0323bSVladimir Oltean	depends on HAS_IOMEM
32e330fb14SJakub Kicinski	depends on OF
33f4d0323bSVladimir Oltean	select MSCC_OCELOT_SWITCH_LIB
3489e35f66SVladimir Oltean	select GENERIC_PHY
35a556c76aSAlexandre Belloni	help
36a556c76aSAlexandre Belloni	  This driver supports the Ocelot network switch device as present on
3714addfb6SVladimir Oltean	  the Ocelot SoCs (VSC7514).
38a556c76aSAlexandre Belloni
39a556c76aSAlexandre Belloniendif # NET_VENDOR_MICROSEMI
40