Skip to content

Commit 58da0cf

Browse files
wvoondavem330
authored andcommitted
net: stmmac: create dwmac-intel.c to contain all Intel platform
As stmmac_pci.c file is getting bigger and more complex, it is reasonable to separate all the Intel specific dwmac pci device to a different file. This move includes Intel Quark, TGL and EHL. A new kernel config CONFIG_DWMAC_INTEL is introduced and depends on X86. For this initial patch, all the necessary function such as probe() and exit() are identical besides the function name. Signed-off-by: Voon Weifeng <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 60d79ab commit 58da0cf

File tree

4 files changed

+519
-313
lines changed

4 files changed

+519
-313
lines changed

drivers/net/ethernet/stmicro/stmmac/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,15 @@ config DWMAC_SUN8I
198198
EMAC ethernet controller.
199199
endif
200200

201+
config DWMAC_INTEL
202+
tristate "Intel GMAC support"
203+
default X86
204+
depends on X86 && STMMAC_ETH && PCI
205+
depends on COMMON_CLK
206+
---help---
207+
This selects the Intel platform specific bus support for the
208+
stmmac driver. This driver is used for Intel Quark/EHL/TGL.
209+
201210
config STMMAC_PCI
202211
tristate "STMMAC PCI bus support"
203212
depends on STMMAC_ETH && PCI

drivers/net/ethernet/stmicro/stmmac/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ obj-$(CONFIG_DWMAC_GENERIC) += dwmac-generic.o
3030
stmmac-platform-objs:= stmmac_platform.o
3131
dwmac-altr-socfpga-objs := altr_tse_pcs.o dwmac-socfpga.o
3232

33+
obj-$(CONFIG_DWMAC_INTEL) += dwmac-intel.o
3334
obj-$(CONFIG_STMMAC_PCI) += stmmac-pci.o
3435
stmmac-pci-objs:= stmmac_pci.o

0 commit comments

Comments
 (0)