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 "Support for KSZ8794"
21	default y
22	depends on DT_HAS_MICROCHIP_KSZ8794_ENABLED
23	select DSA_KSZ8XXX
24	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_MICROCHIP_KSZ8794),spi)
25	help
26	  Add support for KSZ8794 DSA device driver.
27
28config DSA_KSZ8863
29	bool "Support for KSZ8863"
30	default y
31	depends on DT_HAS_MICROCHIP_KSZ8863_ENABLED
32	select DSA_KSZ8XXX
33	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_MICROCHIP_KSZ8863),spi)
34	help
35	  Add support for KSZ8863 DSA device driver.
36
37config DSA_KSZ_TAIL_TAGGING
38	bool "Support for tail tagging"
39	depends on DSA_KSZ8794 || DSA_KSZ8863
40	help
41	  Add support for tail tagging on DSA device.
42
43config DSA_SPI
44	bool "Support for PHY SPI interface"
45	depends on SPI && (DSA_KSZ8794 || DSA_KSZ8863)
46	help
47	  Use SPI bus to communicate with PHY
48
49module = NET_DSA
50module-dep = NET_LOG
51module-str = Log level for DSA
52module-help = Enables core DSA code to output debug messages.
53source "subsys/net/Kconfig.template.log_config.net"
54
55endif # NET_DSA
56