Skip to content

Commit 5520e3b

Browse files
Jakub Klimczakcfriedt
authored andcommitted
tests: drivers: build_all: virtio: Add VIRTIO Console
Add the VIRTIO Console to the driver build test on qemu_x86_64 (PCI) and qemu_cortex_a53 (MMIO). Signed-off-by: Jakub Klimczak <[email protected]>
1 parent fdd4a7b commit 5520e3b

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

tests/drivers/build_all/virtio/boards/qemu_cortex_a53.overlay

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/ {
88
chosen {
99
zephyr,entropy = &virtio_entropy;
10+
zephyr,console = &virtio_console;
1011
};
1112
};
1213

@@ -18,3 +19,12 @@
1819
status = "okay";
1920
};
2021
};
22+
23+
&virtio_mmio1 {
24+
status = "okay";
25+
26+
virtio_console: virtio_console {
27+
compatible = "virtio,console";
28+
status = "okay";
29+
};
30+
};

tests/drivers/build_all/virtio/boards/qemu_x86_64.overlay

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
2-
* Copyright (c) 2024 Antmicro <www.antmicro.com>
2+
* Copyright (c) 2024-2025 Antmicro <www.antmicro.com>
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

77
/ {
88
chosen {
9+
zephyr,console = &virtio_console;
910
zephyr,entropy = &virtio_entropy;
1011
};
1112
};
@@ -23,6 +24,21 @@
2324
status = "okay";
2425
};
2526

27+
virtio_console_pci: virtio_console_pci {
28+
compatible = "virtio,pci";
29+
30+
vendor-id = <0x1af4>;
31+
device-id = <0x1003>;
32+
33+
interrupts = <0xb 0x0 0x0>;
34+
interrupt-parent = <&intc>;
35+
36+
virtio_console: virtio_console {
37+
compatible = "virtio,console";
38+
status = "okay";
39+
};
40+
};
41+
2642
virtio_entropy: virtio_entropy {
2743
compatible = "virtio,pci";
2844

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
CONFIG_TEST=y
22
CONFIG_VIRTIO=y
33
CONFIG_HEAP_MEM_POOL_SIZE=1024
4+
CONFIG_BOOT_BANNER=n
5+
CONFIG_EARLY_CONSOLE=n
6+
CONFIG_X86_VERY_EARLY_CONSOLE=n
7+
CONFIG_UART_VIRTIO_CONSOLE_F_MULTIPORT=y
48
CONFIG_ENTROPY_GENERATOR=y

0 commit comments

Comments
 (0)