726-phy_rtl8366.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --- a/drivers/net/phy/Kconfig
  2. +++ b/drivers/net/phy/Kconfig
  3. @@ -161,4 +161,29 @@ config MDIO_OCTEON
  4. If in doubt, say Y.
  5. +config RTL8366_SMI
  6. + tristate "Driver for the RTL8366 SMI interface"
  7. + depends on GENERIC_GPIO
  8. + ---help---
  9. + This module implements the SMI interface protocol which is used
  10. + by some RTL8366 ethernet switch devices via the generic GPIO API.
  11. +
  12. +if RTL8366_SMI
  13. +
  14. +config RTL8366S_PHY
  15. + tristate "Driver for the Realtek RTL8366S switch"
  16. + select SWCONFIG
  17. +
  18. +config RTL8366RB_PHY
  19. + tristate "Driver for the Realtek RTL8366RB switch"
  20. + select SWCONFIG
  21. +
  22. +config RTL8366S_PHY_DEBUG_FS
  23. + bool "RTL8366 switch driver DEBUG_FS support"
  24. + depends on RTL8366S_PHY || RTL8366RB_PHY
  25. + depends on DEBUG_FS
  26. + default n
  27. +
  28. +endif # RTL8366_SMI
  29. +
  30. endif # PHYLIB
  31. --- a/drivers/net/phy/Makefile
  32. +++ b/drivers/net/phy/Makefile
  33. @@ -20,6 +20,9 @@ obj-$(CONFIG_IP17XX_PHY) += ip17xx.o
  34. obj-$(CONFIG_REALTEK_PHY) += realtek.o
  35. obj-$(CONFIG_AR8216_PHY) += ar8216.o
  36. obj-$(CONFIG_RTL8306_PHY) += rtl8306.o
  37. +obj-$(CONFIG_RTL8366_SMI) += rtl8366_smi.o
  38. +obj-$(CONFIG_RTL8366S_PHY) += rtl8366s.o
  39. +obj-$(CONFIG_RTL8366RB_PHY) += rtl8366rb.o
  40. obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o
  41. obj-$(CONFIG_FIXED_PHY) += fixed.o
  42. obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o