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
7config ETH_DSA_SUPPORT
8	bool
9	help
10	  Set by an ethernet driver that supports DSA.
11
12menuconfig NET_DSA
13	bool "Distributed Switch Architecture support"
14	depends on ETH_DSA_SUPPORT
15	help
16	  Enable Distributed Switch Architecture support. For now it
17	  only supports Kinetics and STM32 ENET drivers.
18
19if NET_DSA
20
21config DSA_KSZ8XXX
22	bool
23
24config DSA_KSZ8794
25	bool "Support for KSZ8794"
26	default y
27	depends on DT_HAS_MICROCHIP_KSZ8794_ENABLED
28	select DSA_KSZ8XXX
29	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_MICROCHIP_KSZ8794),spi)
30	help
31	  Add support for KSZ8794 DSA device driver.
32
33config DSA_KSZ8863
34	bool "Support for KSZ8863"
35	default y
36	depends on DT_HAS_MICROCHIP_KSZ8863_ENABLED
37	select DSA_KSZ8XXX
38	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_MICROCHIP_KSZ8863),spi)
39	help
40	  Add support for KSZ8863 DSA device driver.
41
42config DSA_KSZ_TAIL_TAGGING
43	bool "Support for tail tagging"
44	depends on DSA_KSZ8794 || DSA_KSZ8863
45	help
46	  Add support for tail tagging on DSA device.
47
48config DSA_SPI
49	bool "Support for PHY SPI interface"
50	depends on SPI && (DSA_KSZ8794 || DSA_KSZ8863)
51	help
52	  Use SPI bus to communicate with PHY
53
54module = NET_DSA
55module-dep = NET_LOG
56module-str = Log level for DSA
57module-help = Enables core DSA code to output debug messages.
58source "subsys/net/Kconfig.template.log_config.net"
59
60endif # NET_DSA
61