1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
11 * cleanup_before_linux() is called just before we call linux
12 * it prepares the processor for linux
14 * we disable interrupt and caches.
16 int cleanup_before_linux(void)
25 /* To enumerate devices on the /soc/ node, create a "simple-bus" driver */
26 static const struct udevice_id riscv_virtio_soc_ids[] = {
27 { .compatible = "riscv-virtio-soc" },
31 U_BOOT_DRIVER(riscv_virtio_soc) = {
32 .name = "riscv_virtio_soc",
33 .id = UCLASS_SIMPLE_BUS,
34 .of_match = riscv_virtio_soc_ids,
35 .flags = DM_FLAG_PRE_RELOC,