oxnas: move gmac soc glue from mach to stmmac driver
[openwrt/openwrt.git] / target / linux / oxnas / patches-4.1 / 700-oxnas-dwmac.patch
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
10 If you have a controller with this interface, say Y or M here.
11
12 --- a/drivers/net/ethernet/stmicro/stmmac/Makefile
13 +++ b/drivers/net/ethernet/stmicro/stmmac/Makefile
14 @@ -5,8 +5,9 @@ stmmac-objs:= stmmac_main.o stmmac_ethto
15 mmc_core.o stmmac_hwtstamp.o stmmac_ptp.o $(stmmac-y)
16
17 obj-$(CONFIG_STMMAC_PLATFORM) += stmmac-platform.o
18 -stmmac-platform-objs:= stmmac_platform.o dwmac-meson.o dwmac-sunxi.o \
19 - dwmac-sti.o dwmac-socfpga.o dwmac-rk.o
20 +stmmac-platform-objs:= stmmac_platform.o dwmac-meson.o dwmac-oxnas.o \
21 + dwmac-sunxi.o dwmac-sti.o dwmac-socfpga.o \
22 + dwmac-rk.o
23
24 obj-$(CONFIG_STMMAC_PCI) += stmmac-pci.o
25 stmmac-pci-objs:= stmmac_pci.o