700-oxnas-dwmac.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig
  2. +++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig
  3. @@ -20,7 +20,7 @@ config STMMAC_PLATFORM
  4. ---help---
  5. This selects the platform specific bus support for the stmmac driver.
  6. This is the driver used on several SoCs:
  7. - STi, Allwinner, Amlogic Meson, Altera SOCFPGA.
  8. + STi, Allwinner, Amlogic Meson, Altera SOCFPGA and Oxnas.
  9. If you have a controller with this interface, say Y or M here.
  10. --- a/drivers/net/ethernet/stmicro/stmmac/Makefile
  11. +++ b/drivers/net/ethernet/stmicro/stmmac/Makefile
  12. @@ -5,8 +5,9 @@ stmmac-objs:= stmmac_main.o stmmac_ethto
  13. mmc_core.o stmmac_hwtstamp.o stmmac_ptp.o $(stmmac-y)
  14. obj-$(CONFIG_STMMAC_PLATFORM) += stmmac-platform.o
  15. -stmmac-platform-objs:= stmmac_platform.o dwmac-meson.o dwmac-sunxi.o \
  16. - dwmac-sti.o dwmac-socfpga.o dwmac-rk.o
  17. +stmmac-platform-objs:= stmmac_platform.o dwmac-meson.o dwmac-oxnas.o \
  18. + dwmac-sunxi.o dwmac-sti.o dwmac-socfpga.o \
  19. + dwmac-rk.o
  20. obj-$(CONFIG_STMMAC_PCI) += stmmac-pci.o
  21. stmmac-pci-objs:= stmmac_pci.o
  22. --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
  23. +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
  24. @@ -34,6 +34,7 @@
  25. static const struct of_device_id stmmac_dt_ids[] = {
  26. /* SoC specific glue layers should come before generic bindings */
  27. + { .compatible = "plxtech,nas782x-gmac", .data = &oxnas_gmac_data},
  28. { .compatible = "rockchip,rk3288-gmac", .data = &rk3288_gmac_data},
  29. { .compatible = "amlogic,meson6-dwmac", .data = &meson6_dwmac_data},
  30. { .compatible = "allwinner,sun7i-a20-gmac", .data = &sun7i_gmac_data},
  31. --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h
  32. +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h
  33. @@ -25,5 +25,6 @@ extern const struct stmmac_of_data stih4
  34. extern const struct stmmac_of_data stid127_dwmac_data;
  35. extern const struct stmmac_of_data socfpga_gmac_data;
  36. extern const struct stmmac_of_data rk3288_gmac_data;
  37. +extern const struct stmmac_of_data oxnas_gmac_data;
  38. #endif /* __STMMAC_PLATFORM_H__ */