net: Add support for Broadcom GENETv5 Ethernet controller 15/224415/1
authorAmit Singh Tomar <amittomer25@gmail.com>
Mon, 27 Jan 2020 01:14:42 +0000 (01:14 +0000)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 10 Feb 2020 10:56:09 +0000 (11:56 +0100)
commit7c5ff2e9188f6ab305b791126f08afd52d63f7b9
tree136062a83545d0ca9db0e5bdd8d2e355145facb6
parent5eb368ac9abeb9082f3ead3d7c8d0523394b7915
net: Add support for Broadcom GENETv5 Ethernet controller

The Broadcom GENET Ethernet MACs are used in several MIPS based SoCs
and in the Broadcom 2711/2838 SoC used on the Raspberry Pi 4.
There is no publicly available documentation, so this driver is based
on the Linux driver. Compared to that the queue management is
drastically simplified, also we only support version 5 of the IP and
RGMII connections between MAC and PHY, as used on the RPi4.

Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
[Andre: heavy cleanup and a few fixes]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
[backport of mainline commit d53e3fa3853d5dad9ac4c39128cd08e0ae7a33ef]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I578e251809583314695e0212e5f954dac366ddef
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/bcmgenet.c [new file with mode: 0644]