2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/net/ethernet/marvell
Thomas Petazzoni c5aff18204 net: mvneta: driver for Marvell Armada 370/XP network unit
This patch contains a new network driver for the network unit of the
ARM Marvell Armada 370 and the Armada XP. Both SoCs use the PJ4B
processor, a Marvell-developed ARM core that implements the ARMv7
instruction set.

Compared to previous ARM Marvell SoCs (Kirkwood, Orion, Discovery),
the network unit in Armada 370 and Armada XP is highly different. This
is the reason why this new 'mvneta' driver is needed, while the older
ARM Marvell SoCs use the 'mv643xx_eth' driver.

Here is an overview of the most important hardware changes that
require a new, specific, driver for the network unit of Armada 370/XP:

 - The new network unit has a completely different design and layout
   for the RX and TX descriptors. They are now organized as a simple
   array (each RX and TX queue has base address and size of this
   array) rather than a linked list as in the old SoCs.

 - The new network unit has a different RXQ and TXQ management: this
   management is done using special read/write counter registers,
   while in the Old SocS, it was done using the Ownership bit in RX
   and TX descriptors.

 - The new network unit has different interrupt registers

 - The new network unit way of cleaning of interrupts is not done by
   writing to the cause register, but by updating per-queue counters

 - The new network unit has different GMAC registers (link, speed,
   duplex configuration) and different WRR registers.

 - The new network unit has lots of new units like PnC (Parser and
   Classifier), PMT, BM (Memory Buffer Management), xPON, and more.

The driver proposed in the current patch only handles the basic
features. Additional hardware features will progressively be supported
as needed.

This code has originally been written by Rami Rosen
<rosenr@marvell.com>, and then reviewed and cleaned up by Thomas
Petazzoni <thomas.petazzoni@free-electrons.com>.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: David S. Miller <davem@davemloft.net>
2012-11-16 10:21:26 +01:00
..
Kconfig net: mvneta: driver for Marvell Armada 370/XP network unit 2012-11-16 10:21:26 +01:00
Makefile net: mvneta: driver for Marvell Armada 370/XP network unit 2012-11-16 10:21:26 +01:00
mv643xx_eth.c net: remove skb recycling 2012-10-07 00:40:54 -04:00
mvmdio.c net: mvmdio: new Marvell MDIO driver 2012-11-16 10:20:52 +01:00
mvneta.c net: mvneta: driver for Marvell Armada 370/XP network unit 2012-11-16 10:21:26 +01:00
pxa168_eth.c ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
skge.c drivers/net: use tasklet_kill in device remove/close process 2012-11-03 15:10:15 -04:00
skge.h skge/sky2/mv643xx/pxa168: Move the Marvell Ethernet drivers 2011-08-12 00:21:51 -07:00
sky2.c drivers/net/ethernet/marvell/sky2.c: fix error return code 2012-10-07 14:37:12 -04:00
sky2.h sky2: Added support for Optima EEE 2012-07-09 00:05:40 -07:00