xref: /openbmc/linux/drivers/net/dsa/realtek/Kconfig (revision 2511e0c8)
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	tristate "Realtek MDIO interface driver"
20	depends on OF
21	depends on NET_DSA_REALTEK_RTL8365MB || NET_DSA_REALTEK_RTL8366RB
22	depends on NET_DSA_REALTEK_RTL8365MB || !NET_DSA_REALTEK_RTL8365MB
23	depends on NET_DSA_REALTEK_RTL8366RB || !NET_DSA_REALTEK_RTL8366RB
24	help
25	  Select to enable support for registering switches configured
26	  through MDIO.
27
28config NET_DSA_REALTEK_SMI
29	tristate "Realtek SMI interface driver"
30	depends on OF
31	depends on NET_DSA_REALTEK_RTL8365MB || NET_DSA_REALTEK_RTL8366RB
32	depends on NET_DSA_REALTEK_RTL8365MB || !NET_DSA_REALTEK_RTL8365MB
33	depends on NET_DSA_REALTEK_RTL8366RB || !NET_DSA_REALTEK_RTL8366RB
34	help
35	  Select to enable support for registering switches connected
36	  through SMI.
37
38config NET_DSA_REALTEK_RTL8365MB
39	tristate "Realtek RTL8365MB switch subdriver"
40	imply NET_DSA_REALTEK_SMI
41	imply NET_DSA_REALTEK_MDIO
42	select NET_DSA_TAG_RTL8_4
43	help
44	  Select to enable support for Realtek RTL8365MB-VC and RTL8367S.
45
46config NET_DSA_REALTEK_RTL8366RB
47	tristate "Realtek RTL8366RB switch subdriver"
48	imply NET_DSA_REALTEK_SMI
49	imply NET_DSA_REALTEK_MDIO
50	select NET_DSA_TAG_RTL4_A
51	help
52	  Select to enable support for Realtek RTL8366RB.
53
54endif
55