Add i.MX FEC ethernet controller
PATCH 1/2 Add i.MX FEC ethernet controller
This port is based on the cold fire FEC emulator.
A generic PHY was added (borrowed from lan9118).
The buffer management is also modified as buffers are slightly different between coldfire and i.MX.
Signed-off-by Jean-Christophe DUBOIS <[email protected]>
--- default-configs/arm-softmmu.mak | 1 + hw/net/Makefile.objs | 1 + hw/net/imx_fec.c | 746 ++++++++++++++++++++++++++++++++++++++++ include/hw/arm/imx.h | 1 + 4 files changed, 749 insertions(+) create mode 100644 hw/net/imx_fec.c
default-configs/arm-softmmu.mak +1 -0
@@ -28,6 +28,7 @@ CONFIG_SSI_SD=y CONFIG_SSI_M25P80=y CONFIG_LAN9118=y CONFIG_SMC91C111=y +CONFIG_IMX_FEC=y CONFIG_DS1338=y CONFIG_PFLASH_CFI01=y CONFIG_PFLASH_CFI02=y
hw/net/Makefile.objs +1 -0
@@ -18,6 +18,7 @@ common-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o common-obj-$(CONFIG_XGMAC) += xgmac.o common-obj-$(CONFIG_MIPSNET) += mipsnet.o common-obj-$(CONFIG_XILINX_AXI) += xilinx_axienet.o +common-obj-$(CONFIG_IMX_FEC) += imx_fec.o common-obj-$(CONFIG_CADENCE) += cadence_gem.o common-obj-$(CONFIG_STELLARIS_ENET) += stellaris_enet.o
hw/net/imx_fec.c new file +746 -0
746 lines not on this page · raw message
include/hw/arm/imx.h +1 -0
@@ -30,5 +30,6 @@ void imx_timerg_create(const hwaddr addr,qemu_irq irq, DeviceState *ccm); +void imx_fec_create (int nic,const hwaddr base,qemu_irq irq);#endif /* IMX_H */
Signature · 1 line
1.8.1.2