net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375
PATCH v3 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.
---
v3:
- Use priv_auto_alloc for the priv struct of the parent MISC driver instead of allocating manually
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 | 4190 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/net.h | 2 + 4 files changed, 4201 insertions(+) create mode 100644 drivers/net/mvpp2.c
drivers/net/Kconfig +8 -0
@@ -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
@@ -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 +4190 -0
2,979 lines not on this page · 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.
PATCH v3 2/6 net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375
Hi Stefan,
Quoted 9 lines · Stefan Roese
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.
Signed-off-by Stefan Roese <[email protected]>Cc Luka Perkov <[email protected]>Cc Joe Hershberger <[email protected]>
PATCH v3 2/6 net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375
Hi Joe,
Quoted 5 lines · Joe Hershberger
Quoted 4 lines · Stefan Roese
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.
Quoted 7 lines
Quoted 5 lines
Tested on the Marvell Armada 375 eval board db-88f6720.
Signed-off-by Stefan Roese <[email protected]>Cc Luka Perkov <[email protected]>Cc Joe Hershberger <[email protected]>Acked-by Joe Hershberger <[email protected]>
Thanks Joe. Do you plan to push this patch upstream soon? Or should I pull it with this Armada 375 patchset?
Thanks,
Stefan
PATCH v3 2/6 net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375
Hi Stefan,
Quoted 19 lines · Stefan Roese
Hi Joe,
Quoted 16 lines · Joe Hershberger
Quoted 12 lines · Stefan Roese
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.
Signed-off-by Stefan Roese <[email protected]>Cc Luka Perkov <[email protected]>Cc Joe Hershberger <[email protected]>
Quoted 5 lines
Quoted 1 line
Acked-by Joe Hershberger <[email protected]>Thanks Joe. Do you plan to push this patch upstream soon? Or should I pull it with this Armada 375 patchset?
It's assigned to you in patchwork. I'm fine with you pulling it in.
Cheers,
-Joe
PATCH v3 2/6 net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375
In reply to Stefan RoeseQuoted 9 lines · Stefan Roese
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.
Signed-off-by Stefan Roese <[email protected]>Cc Luka Perkov <[email protected]>Cc Joe Hershberger <[email protected]>
Applied to u-boot-marvell/master.
Thanks,
Stefan