add driver for Synopsys Ethernet 10G device
cover add driver for Synopsys Ethernet 10G device
This driver support the Synopsys Designware Ethernet 10G IP block refer from the driver dwc_eth_qos.
The driver MAC register mapping is different between Synopsys QoS IP and Synopsys 10G IP, and thus new file is created meant for Sysnopsys 10G IP.
The dwc_eth_xgmac_socfpga.c is specific to a device family, the driver support the specific configuration used in Intel SoC FPGA Agilex5.
This driver is extensible for other device family to use.
Boon Khai Ng (1):
net: Add drivers for Sysnopsys Ethernet 10G device
drivers/net/Kconfig | 18 + drivers/net/Makefile | 2 + drivers/net/dwc_eth_xgmac.c | 1165 +++++++++++++++++++++++++++ drivers/net/dwc_eth_xgmac.h | 298 +++++++ drivers/net/dwc_eth_xgmac_socfpga.c | 226 ++++++ 5 files changed, 1709 insertions(+) create mode 100644 drivers/net/dwc_eth_xgmac.c create mode 100644 drivers/net/dwc_eth_xgmac.h create mode 100644 drivers/net/dwc_eth_xgmac_socfpga.c
Signature · 1 line
2.25.1
PATCH 1/1 net: Add drivers for Sysnopsys Ethernet 10G device
This driver support the Synopsys Designware Ethernet 10G IP block refer from the driver dwc_eth_qos.
The driver MAC register mapping is different between Synopsys QoS IP and Synopsys 10G IP, and thus new file is created meant for Sysnopsys 10G IP.
The dwc_eth_xgmac_socfpga.c is specific to a device family, the driver support the specific configuration used in Intel SoC FPGA Agilex5.
This driver is extensible for other device family to use.
--- drivers/net/Kconfig | 18 + drivers/net/Makefile | 2 + drivers/net/dwc_eth_xgmac.c | 1165 +++++++++++++++++++++++++++ drivers/net/dwc_eth_xgmac.h | 298 +++++++ drivers/net/dwc_eth_xgmac_socfpga.c | 226 ++++++ 5 files changed, 1709 insertions(+) create mode 100644 drivers/net/dwc_eth_xgmac.c create mode 100644 drivers/net/dwc_eth_xgmac.h create mode 100644 drivers/net/dwc_eth_xgmac_socfpga.c
drivers/net/Kconfig +18 -0
@@ -193,6 +193,24 @@ config CALXEDA_XGMAC This driver supports the XGMAC in Calxeda Highbank and Midway machines. +config DWC_ETH_XGMAC + bool "Synopsys DWC Ethernet XGMAC device support" + select PHYLIB + help + This driver supports the Synopsys Designware Ethernet XGMAC (10G + Ethernet MAC) IP block. The IP supports many options for bus type, + clocking/reset structure, and feature list. + +config DWC_ETH_XGMAC_SOCFPGA + bool "Synopsys DWC Ethernet XGMAC device support for SOCFPGA" + select REGMAP + select SYSCON + depends on DWC_ETH_XGMAC + default y if TARGET_SOCFPGA_AGILEX5 + help + The Synopsys Designware Ethernet XGMAC IP block with specific + configuration used in Intel SoC FPGA chip. + config DRIVER_DM9000 bool "Davicom DM9000 controller driver" help
drivers/net/Makefile +2 -0
@@ -22,6 +22,8 @@ obj-$(CONFIG_DWC_ETH_QOS) += dwc_eth_qos.o obj-$(CONFIG_DWC_ETH_QOS_IMX) += dwc_eth_qos_imx.o obj-$(CONFIG_DWC_ETH_QOS_ROCKCHIP) += dwc_eth_qos_rockchip.o obj-$(CONFIG_DWC_ETH_QOS_QCOM) += dwc_eth_qos_qcom.o +obj-$(CONFIG_DWC_ETH_XGMAC) += dwc_eth_xgmac.o +obj-$(CONFIG_DWC_ETH_XGMAC_SOCFPGA) += dwc_eth_xgmac_socfpga.o obj-$(CONFIG_DWC_ETH_QOS_STARFIVE) += dwc_eth_qos_starfive.o obj-$(CONFIG_E1000) += e1000.o obj-$(CONFIG_E1000_SPI) += e1000_spi.o
drivers/net/dwc_eth_xgmac.c new file +1165 -0
1,165 lines not on this page · raw message
drivers/net/dwc_eth_xgmac.h new file +298 -0
298 lines not on this page · raw message
drivers/net/dwc_eth_xgmac_socfpga.c new file +226 -0
226 lines not on this page · raw message
Signature · 1 line
2.25.1
Re: [PATCH v1 1/1] net: Add drivers for Sysnopsys Ethernet 10G device
Quoted 7 lines · Boon Khai Ng
This driver support the Synopsys Designware Ethernet 10G IP block refer from the driver
dwc_eth_qos.The driver MAC register mapping is different between Synopsys QoS IP and Synopsys 10G IP, and thus new file is created meant for Sysnopsys 10G IP.
Quoted 7 lines
The
dwc_eth_xgmac_socfpga.cis specific to a device family, the driver support the specific configuration used in Intel SoC FPGA Agilex5.This driver is extensible for other device family to use.
Signed-off-by Boon Khai Ng <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom