summaryrefslogtreecommitdiff
path: root/board/armltd/vexpress64
diff options
context:
space:
mode:
authorPeter Hoyes <Peter.Hoyes@arm.com>2021-11-11 09:26:03 +0000
committerTom Rini <trini@konsulko.com>2022-01-04 22:48:48 -0500
commit439581dca4c786dbbdd2d6be024e0b907a3b0c80 (patch)
treec06c897a36d854cb8abe9e8e18150f7d8f22c34d /board/armltd/vexpress64
parent2661397464e47d45cd25bbc5e6b9de7594b3268d (diff)
vexpress64: Enable VIRTIO_NET network driver
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>
Diffstat (limited to 'board/armltd/vexpress64')
-rw-r--r--board/armltd/vexpress64/vexpress64.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/armltd/vexpress64/vexpress64.c b/board/armltd/vexpress64/vexpress64.c
index d17b463be5..5e22e89824 100644
--- a/board/armltd/vexpress64/vexpress64.c
+++ b/board/armltd/vexpress64/vexpress64.c
@@ -18,6 +18,10 @@
#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;
}