vexpress64: Enable VIRTIO_NET network driver
authorPeter Hoyes <Peter.Hoyes@arm.com>
Thu, 11 Nov 2021 09:26:03 +0000 (09:26 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 5 Jan 2022 03:48:48 +0000 (22:48 -0500)
The SMSC driver is using the old driver model.

Init the virtio system in vexpress64.c so that the network device is
discovered.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
board/armltd/vexpress64/vexpress64.c
include/configs/vexpress_aemv8.h

index d17b463..5e22e89 100644 (file)
 #include <dm/platform_data/serial_pl01x.h>
 #include "pcie.h"
 #include <asm/armv8/mmu.h>
+#ifdef CONFIG_VIRTIO_NET
+#include <virtio_types.h>
+#include <virtio.h>
+#endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -64,6 +68,9 @@ __weak void vexpress64_pcie_init(void)
 int board_init(void)
 {
        vexpress64_pcie_init();
+#ifdef CONFIG_VIRTIO_NET
+       virtio_init();
+#endif
        return 0;
 }
 
index 5f7d19d..54e8cae 100644 (file)
@@ -88,8 +88,8 @@
 #endif
 #endif /* !CONFIG_GICV3 */
 
-#ifndef CONFIG_TARGET_VEXPRESS64_JUNO
-/* The Vexpress64 simulators use SMSC91C111 */
+#if defined(CONFIG_TARGET_VEXPRESS64_BASE_FVP) && !defined(CONFIG_DM_ETH)
+/* The Vexpress64 BASE_FVP simulator uses SMSC91C111 */
 #define CONFIG_SMC91111                        1
 #define CONFIG_SMC91111_BASE           (V2M_PA_BASE + 0x01A000000)
 #endif