hw/net: Add NPCMXXX GMAC device
commit08f787a34cbeca333bd9a79a5d6723c750abd56e
authorHao Wu <wuhaotsh@google.com>
Wed, 31 Jan 2024 00:27:54 +0000 (31 00:27 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Feb 2024 13:51:59 +0000 (2 13:51 +0000)
tree7a0a5e088020de1d732702f78d80f7def4ce8092
parentd0e16850eed350b1eac562f52bf81f2341923b4c
hw/net: Add NPCMXXX GMAC device

This patch implements the basic registers of GMAC device and sets
registers for networking functionalities.
Squashed IRQ Implementation patch into this one for compliation.
Tested:
The following message shows up with the change:
Broadcom BCM54612E stmmac-0:00: attached PHY driver [Broadcom BCM54612E] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
stmmaceth f0802000.eth eth0: Link is Up - 1Gbps/Full - flow control rx/tx

Change-Id: If71c6d486b95edcccba109ba454870714d7e0940
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Nabih Estefan Diaz <nabihestefan@google.com>
Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
Message-id: 20240131002800.989285-2-nabihestefan@google.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/meson.build
hw/net/npcm_gmac.c [new file with mode: 0644]
hw/net/trace-events
include/hw/net/npcm_gmac.h [new file with mode: 0644]