1# Distributed Switch Architecture [DSA] configuration options
2
3# Copyright (c) 2020 DENX Software Engineering GmbH
4#               Lukasz Majewski <lukma@denx.de>
5# SPDX-License-Identifier: Apache-2.0
6
7menuconfig NET_DSA
8	bool "Distributed Switch Architecture support"
9	depends on ETH_MCUX || ETH_SAM_GMAC
10	help
11	  Enable Distributed Switch Architecture support. For now it
12	  only supports Kinetics ENET driver.
13
14if NET_DSA
15
16config DSA_KSZ8XXX
17	bool
18
19config DSA_KSZ8794
20	bool "Enable support for KSZ8794"
21	select DSA_KSZ8XXX
22	help
23	  Add support for KSZ8794 DSA device driver.
24
25config DSA_KSZ8863
26	bool "Enable support for KSZ8863"
27	select DSA_KSZ8XXX
28	help
29	  Add support for KSZ8863 DSA device driver.
30
31config DSA_KSZ_TAIL_TAGGING
32	bool "Enable support for tail tagging"
33	depends on DSA_KSZ8794 || DSA_KSZ8863
34	help
35	  Add support for tail tagging on DSA device.
36
37config DSA_SPI
38	bool "Enable support for PHY SPI interface"
39	depends on SPI && (DSA_KSZ8794 || DSA_KSZ8863)
40	help
41	  Use SPI bus to communicate with PHY
42
43module = NET_DSA
44module-dep = NET_LOG
45module-str = Log level for DSA
46module-help = Enables core DSA code to output debug messages.
47source "subsys/net/Kconfig.template.log_config.net"
48
49endif # NET_DSA
50