011-switch-rtl8366sr.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. diff -ur u-boot-2010.03/drivers/net/Makefile u-boot-nbg/drivers/net/Makefile
  2. --- u-boot-2010.03/drivers/net/Makefile 2010-03-31 23:54:39.000000000 +0200
  3. +++ u-boot-nbg/drivers/net/Makefile 2010-04-19 23:30:01.000000000 +0200
  4. @@ -65,6 +65,7 @@
  5. COBJS-$(CONFIG_DRIVER_RTL8019) += rtl8019.o
  6. COBJS-$(CONFIG_RTL8139) += rtl8139.o
  7. COBJS-$(CONFIG_RTL8169) += rtl8169.o
  8. +COBJS-$(CONFIG_RTL8366_MII) += phy/rtl8366_mii.o
  9. COBJS-$(CONFIG_DRIVER_S3C4510_ETH) += s3c4510b_eth.o
  10. COBJS-$(CONFIG_SH_ETHER) += sh_eth.o
  11. COBJS-$(CONFIG_SMC91111) += smc91111.o
  12. diff -ur u-boot-2010.03/include/netdev.h u-boot-nbg/include/netdev.h
  13. --- u-boot-2010.03/include/netdev.h 2010-03-31 23:54:39.000000000 +0200
  14. +++ u-boot-nbg/include/netdev.h 2010-05-02 11:30:58.000000000 +0200
  15. @@ -175,5 +175,13 @@
  16. int mv88e61xx_switch_initialize(struct mv88e61xx_config *swconfig);
  17. #endif /* CONFIG_MV88E61XX_SWITCH */
  18. +
  19. +#if defined(CONFIG_RTL8366_MII)
  20. +#define RTL8366_DEVNAME "rtl8366"
  21. +#define RTL8366_WANPHY_ID 4
  22. +#define RTL8366_LANPHY_ID -1
  23. +int rtl8366_mii_register(bd_t *bis);
  24. +int rtl8366s_initialize(void);
  25. +#endif
  26. #endif /* _NETDEV_H_ */