hw/arm/allwinner-h3: add EMAC ethernet device
authorNiek Linnenbank <nieklinnenbank@gmail.com>
Wed, 11 Mar 2020 22:18:45 +0000 (23:18 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Mar 2020 16:27:33 +0000 (16:27 +0000)
commit29d08975d1cc2ec668d9eb430c507a4fee515ea5
treed0328fd17f7acd8abbdea593a9a0083a3b690924
parent82e4838249b23c3fe20cee295f9c1b3e6abd68d1
hw/arm/allwinner-h3: add EMAC ethernet device

The Allwinner Sun8i System on Chip family includes an Ethernet MAC (EMAC)
which provides 10M/100M/1000M Ethernet connectivity. This commit
adds support for the Allwinner EMAC from the Sun8i family (H2+, H3, A33, etc),
including emulation for the following functionality:

 * DMA transfers
 * MII interface
 * Transmit CRC calculation

Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200311221854.30370-10-nieklinnenbank@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/Kconfig
hw/arm/allwinner-h3.c
hw/arm/orangepi.c
hw/net/Kconfig
hw/net/Makefile.objs
hw/net/allwinner-sun8i-emac.c [new file with mode: 0644]
hw/net/trace-events
include/hw/arm/allwinner-h3.h
include/hw/net/allwinner-sun8i-emac.h [new file with mode: 0644]