mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/arm/fsl-imx8mp: Add Ethernet controller
The i.MX 8M Plus SoC actually has two ethernet controllers, the usual ENET one and a Designware one. There is no device model for the latter, so only add the ENET one. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-id: 20250223114708.1780-15-shentey@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
f8b2612176
commit
0c105b2615
5 changed files with 35 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "hw/misc/imx7_snvs.h"
|
||||
#include "hw/misc/imx8mp_analog.h"
|
||||
#include "hw/misc/imx8mp_ccm.h"
|
||||
#include "hw/net/imx_fec.h"
|
||||
#include "hw/or-irq.h"
|
||||
#include "hw/pci-host/designware.h"
|
||||
#include "hw/pci-host/fsl_imx8m_phy.h"
|
||||
|
@ -58,11 +59,15 @@ struct FslImx8mpState {
|
|||
IMXSPIState spi[FSL_IMX8MP_NUM_ECSPIS];
|
||||
IMXI2CState i2c[FSL_IMX8MP_NUM_I2CS];
|
||||
IMXSerialState uart[FSL_IMX8MP_NUM_UARTS];
|
||||
IMXFECState enet;
|
||||
SDHCIState usdhc[FSL_IMX8MP_NUM_USDHCS];
|
||||
IMX2WdtState wdt[FSL_IMX8MP_NUM_WDTS];
|
||||
DesignwarePCIEHost pcie;
|
||||
FslImx8mPciePhyState pcie_phy;
|
||||
OrIRQState gpt5_gpt6_irq;
|
||||
|
||||
uint32_t phy_num;
|
||||
bool phy_connected;
|
||||
};
|
||||
|
||||
enum FslImx8mpMemoryRegions {
|
||||
|
@ -253,6 +258,9 @@ enum FslImx8mpIrqs {
|
|||
FSL_IMX8MP_WDOG2_IRQ = 79,
|
||||
FSL_IMX8MP_WDOG3_IRQ = 10,
|
||||
|
||||
FSL_IMX8MP_ENET1_MAC_IRQ = 118,
|
||||
FSL_IMX6_ENET1_MAC_1588_IRQ = 121,
|
||||
|
||||
FSL_IMX8MP_PCI_INTA_IRQ = 126,
|
||||
FSL_IMX8MP_PCI_INTB_IRQ = 125,
|
||||
FSL_IMX8MP_PCI_INTC_IRQ = 124,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue