Skip to contentSkip to conversation

net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375

PATCH Superseded Stefan Roese 1 participant 1 message Mar 23, 2016 Network drivers

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/6 net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375

This patch adds support for the mvpp2 ethernet controller which is integrated in the Marvell Armada 375 SoC. This port is based on the Linux driver (v4.4), which has been stripped of the in U-Boot unused portions.

Tested on the Marvell Armada 375 eval board db-88f6720.

Cc Luka Perkov <[email protected]>
Cc Joe Hershberger <[email protected]>

---
v2:
- Removed check for PHYLIB
- Used U-Boot defines instead of Linux ones where possible
- Added PROT_PPP_SES and PROT_IPV6 to include/net.h
- Introduced probe function for the MISC parent driver, which now handles all the "do-once" things

 drivers/net/Kconfig  |    8 +
 drivers/net/Makefile |    1 +
 drivers/net/mvpp2.c  | 4199 ++++++++++++++++++++++++++++++++++++++++++++++++++
 include/net.h        |    2 +
 4 files changed, 4210 insertions(+)
 create mode 100644 drivers/net/mvpp2.c
drivers/net/Kconfig +8 -0
index 2a229b8..d9dda16 100644
@@ -94,6 +94,14 @@ config ETH_DESIGNWARE
 	  100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
 	  provide the PHY (physical media interface).
 
+config MVPP2
+	bool "Marvell Armada 375 network interface support"
+	depends on ARMADA_375
+	select PHYLIB
+	help
+	  This driver supports the network interface units in the
+	  Marvell ARMADA 375 SoC.
+
 config PCH_GBE
 	bool "Intel Platform Controller Hub EG20T GMAC driver"
 	depends on DM_ETH && DM_PCI
drivers/net/Makefile +1 -0
index 33a81ee..fbedd04 100644
@@ -42,6 +42,7 @@ obj-$(CONFIG_MPC5xxx_FEC) += mpc5xxx_fec.o
 obj-$(CONFIG_MPC512x_FEC) += mpc512x_fec.o
 obj-$(CONFIG_MVGBE) += mvgbe.o
 obj-$(CONFIG_MVNETA) += mvneta.o
+obj-$(CONFIG_MVPP2) += mvpp2.o
 obj-$(CONFIG_NATSEMI) += natsemi.o
 obj-$(CONFIG_DRIVER_NE2000) += ne2000.o ne2000_base.o
 obj-$(CONFIG_DRIVER_AX88796L) += ax88796.o ne2000_base.o
drivers/net/mvpp2.c new file +4199 -0

2,979 lines not on this page · raw message

include/net.h +2 -0
index a739f45..31b7307 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.7.4

Part of the diff is not shown here. View the raw message.