726-phy_rtl8366.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --- a/drivers/net/phy/Kconfig
  2. +++ b/drivers/net/phy/Kconfig
  3. @@ -215,6 +215,30 @@ config MDIO_BUS_MUX_MMIOREG
  4. Currently, only 8-bit registers are supported.
  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 RTL8366_SMI_DEBUG_FS
  15. + bool "RTL8366 SMI interface debugfs support"
  16. + depends on DEBUG_FS
  17. + default n
  18. +
  19. +config RTL8366S_PHY
  20. + tristate "Driver for the Realtek RTL8366S switch"
  21. + select SWCONFIG
  22. +
  23. +config RTL8366RB_PHY
  24. + tristate "Driver for the Realtek RTL8366RB switch"
  25. + select SWCONFIG
  26. +
  27. +endif # RTL8366_SMI
  28. +
  29. endif # PHYLIB
  30. config MICREL_KS8995MA
  31. --- a/drivers/net/phy/Makefile
  32. +++ b/drivers/net/phy/Makefile
  33. @@ -23,6 +23,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