xref: /openbmc/linux/net/dsa/Kconfig (revision bd76a116)
1b3422a31SBen Hutchingsconfig HAVE_NET_DSA
2b3422a31SBen Hutchings	def_bool y
3b3422a31SBen Hutchings	depends on NETDEVICES && !S390
4b3422a31SBen Hutchings
5b3422a31SBen Hutchings# Drivers must select NET_DSA and the appropriate tagging format
6b3422a31SBen Hutchings
73b158859SBen Hutchingsconfig NET_DSA
882167cb8Sviresh kumar	tristate
9*bd76a116SJiri Pirko	depends on HAVE_NET_DSA && NET_SWITCHDEV
1045cec1baSDavid S. Miller	select PHYLIB
1191da11f8SLennert Buytenhek
12b3422a31SBen Hutchingsif NET_DSA
1391da11f8SLennert Buytenhek
1451579c3fSGuenter Roeckconfig NET_DSA_HWMON
1551579c3fSGuenter Roeck	bool "Distributed Switch Architecture HWMON support"
1651579c3fSGuenter Roeck	default y
1751579c3fSGuenter Roeck	depends on HWMON && !(NET_DSA=y && HWMON=m)
1851579c3fSGuenter Roeck	---help---
1951579c3fSGuenter Roeck	  Say Y if you want to expose thermal sensor data on switches supported
2051579c3fSGuenter Roeck	  by the Distributed Switch Architecture.
2151579c3fSGuenter Roeck
2251579c3fSGuenter Roeck	  Some of those switches contain thermal sensors. This data is available
2351579c3fSGuenter Roeck	  via the hwmon sysfs interface and exposes the onboard sensors.
2451579c3fSGuenter Roeck
2591da11f8SLennert Buytenhek# tagging formats
265037d532SFlorian Fainelliconfig NET_DSA_TAG_BRCM
275037d532SFlorian Fainelli	bool
285037d532SFlorian Fainelli
29cf85d08fSLennert Buytenhekconfig NET_DSA_TAG_DSA
30b3422a31SBen Hutchings	bool
31cf85d08fSLennert Buytenhek
3291da11f8SLennert Buytenhekconfig NET_DSA_TAG_EDSA
33b3422a31SBen Hutchings	bool
3491da11f8SLennert Buytenhek
35396138f0SLennert Buytenhekconfig NET_DSA_TAG_TRAILER
36b3422a31SBen Hutchings	bool
37b3422a31SBen Hutchings
38b3422a31SBen Hutchingsendif
39