Kconfig 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menuconfig 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. Note that at least one interface driver must be enabled for the
  12. subdrivers to be loaded. Moreover, an interface driver cannot achieve
  13. anything without at least one subdriver enabled.
  14. if NET_DSA_REALTEK
  15. config NET_DSA_REALTEK_MDIO
  16. bool "Realtek MDIO interface support"
  17. depends on OF
  18. help
  19. Select to enable support for registering switches configured
  20. through MDIO.
  21. config NET_DSA_REALTEK_SMI
  22. bool "Realtek SMI interface support"
  23. depends on OF
  24. help
  25. Select to enable support for registering switches connected
  26. through SMI.
  27. config NET_DSA_REALTEK_RTL8365MB
  28. tristate "Realtek RTL8365MB switch driver"
  29. depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
  30. select NET_DSA_TAG_RTL8_4
  31. help
  32. Select to enable support for Realtek RTL8365MB-VC and RTL8367S.
  33. config NET_DSA_REALTEK_RTL8366RB
  34. tristate "Realtek RTL8366RB switch driver"
  35. depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
  36. select NET_DSA_TAG_RTL4_A
  37. help
  38. Select to enable support for Realtek RTL8366RB.
  39. config NET_DSA_REALTEK_RTL8366RB_LEDS
  40. bool
  41. depends on (LEDS_CLASS=y || LEDS_CLASS=NET_DSA_REALTEK_RTL8366RB)
  42. depends on NET_DSA_REALTEK_RTL8366RB
  43. default NET_DSA_REALTEK_RTL8366RB
  44. endif