aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/cpu/generic
diff options
context:
space:
mode:
authorBin Meng2020-04-16 08:09:28 -0700
committerAndes2020-04-23 10:14:06 +0800
commited1475e2f46cec0dbde308a67576f9ea32b0287c (patch)
tree2a016c165c55b6fb8540255cb345e169ad919349 /arch/riscv/cpu/generic
parent846b6120140ae98ca88d245fb10955d3c6980603 (diff)
riscv: qemu: Remove the simple-bus driver for the SoC node
Prior to QEMU v3.1.0, QEMU generated the 'virt' SoC node with a "riscv-virtio-soc" compatible string, and a "simple-bus" driver was created to accommodate that special case in U-Boot. Starting from QEMU v3.1.0, the SoC node was set as a "simple-bus", hence the special simple-bus driver is no longer needed. Update the doc to mention the latest tested QEMU version 4.2.0. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/riscv/cpu/generic')
-rw-r--r--arch/riscv/cpu/generic/cpu.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/riscv/cpu/generic/cpu.c b/arch/riscv/cpu/generic/cpu.c
index c0a5288bdbb..13a69ef0cc4 100644
--- a/arch/riscv/cpu/generic/cpu.c
+++ b/arch/riscv/cpu/generic/cpu.c
@@ -4,7 +4,6 @@
*/
#include <common.h>
-#include <dm.h>
#include <irq_func.h>
/*
@@ -21,16 +20,3 @@ int cleanup_before_linux(void)
return 0;
}
-
-/* To enumerate devices on the /soc/ node, create a "simple-bus" driver */
-static const struct udevice_id riscv_virtio_soc_ids[] = {
- { .compatible = "riscv-virtio-soc" },
- { }
-};
-
-U_BOOT_DRIVER(riscv_virtio_soc) = {
- .name = "riscv_virtio_soc",
- .id = UCLASS_SIMPLE_BUS,
- .of_match = riscv_virtio_soc_ids,
- .flags = DM_FLAG_PRE_RELOC,
-};