问题描述
Realtek sdk-3.4.14b增加YT8531 Switch芯片支持
代码修改
修改rtl819x/linux-3.10/drivers/net/phy/Kconfig
--- a/rtl819x/linux-3.10/drivers/net/phy/Kconfig
+++ b/rtl819x/linux-3.10/drivers/net/phy/KconfigCurrently, only 8-bit registers are supported.+config YT8531_PHY
+ tristate "YT8531 PHYs"
+ ---help---
+ Supports the YT8531 PHYs.
+endif # PHYLIBconfig MICREL_KS8995MA
修改 rtl819x/linux-3.10/drivers/net/phy/Makefile
obj-$(CONFIG_MDIO_BUS_MUX) += mdio-mux.oobj-$(CONFIG_MDIO_BUS_MUX_GPIO) += mdio-mux-gpio.oobj-$(CONFIG_MDIO_BUS_MUX_MMIOREG) += mdio-mux-mmioreg.o
+obj-$(CONFIG_YT8531_PHY) += yt8531.o
增加 rtl819x/linux-3.10/drivers/net/phy/yt8531.c
+/*
+ * drivers/net/phy/yt8531.c
+ *
+ * Driver for yt8531 PHYs
+ *
+ * Author: yinghong.zhang<yinghong.zhang@