1# SPDX-License-Identifier: GPL-2.0-only 2menuconfig NET_DSA_REALTEK 3 tristate "Realtek Ethernet switch family support" 4 depends on NET_DSA 5 select FIXED_PHY 6 select IRQ_DOMAIN 7 select REALTEK_PHY 8 select REGMAP 9 help 10 Select to enable support for Realtek Ethernet switch chips. 11 12 Note that at least one interface driver must be enabled for the 13 subdrivers to be loaded. Moreover, an interface driver cannot achieve 14 anything without at least one subdriver enabled. 15 16if NET_DSA_REALTEK 17 18config NET_DSA_REALTEK_MDIO 19 bool "Realtek MDIO interface support" 20 depends on OF 21 help 22 Select to enable support for registering switches configured 23 through MDIO. 24 25config NET_DSA_REALTEK_SMI 26 bool "Realtek SMI interface support" 27 depends on OF 28 help 29 Select to enable support for registering switches connected 30 through SMI. 31 32config NET_DSA_REALTEK_RTL8365MB 33 tristate "Realtek RTL8365MB switch driver" 34 depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO 35 select NET_DSA_TAG_RTL8_4 36 help 37 Select to enable support for Realtek RTL8365MB-VC and RTL8367S. 38 39config NET_DSA_REALTEK_RTL8366RB 40 tristate "Realtek RTL8366RB switch driver" 41 depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO 42 select NET_DSA_TAG_RTL4_A 43 help 44 Select to enable support for Realtek RTL8366RB. 45 46endif 47