summary refs log tree commit diff stats
path: root/hw/arm/imx8mp-evk.c
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2025-02-23 12:47:04 +0100
committerPeter Maydell <peter.maydell@linaro.org>2025-02-25 17:12:18 +0000
commit0c105b261551a9b9fed086a7b9ecd0b6d6063bc4 (patch)
tree4a7226b03e691be1f6a5278d82ec880e338a0975 /hw/arm/imx8mp-evk.c
parentf8b26121762c17af9869b0ec7ccbda6df4ea37f8 (diff)
downloadfocaccia-qemu-0c105b261551a9b9fed086a7b9ecd0b6d6063bc4.tar.gz
focaccia-qemu-0c105b261551a9b9fed086a7b9ecd0b6d6063bc4.zip
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>
Diffstat (limited to 'hw/arm/imx8mp-evk.c')
-rw-r--r--hw/arm/imx8mp-evk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/imx8mp-evk.c b/hw/arm/imx8mp-evk.c
index 27d9e9e8ee..e1a7892fd7 100644
--- a/hw/arm/imx8mp-evk.c
+++ b/hw/arm/imx8mp-evk.c
@@ -36,6 +36,7 @@ static void imx8mp_evk_init(MachineState *machine)
 
     s = FSL_IMX8MP(object_new(TYPE_FSL_IMX8MP));
     object_property_add_child(OBJECT(machine), "soc", OBJECT(s));
+    object_property_set_uint(OBJECT(s), "fec1-phy-num", 1, &error_fatal);
     qdev_realize(DEVICE(s), NULL, &error_fatal);
 
     memory_region_add_subregion(get_system_memory(), FSL_IMX8MP_RAM_START,