--- include/configs/bhyve-riscv.h.orig +++ include/configs/bhyve-riscv.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2017 Tuomas Tynkkynen + */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +#include + +#define CFG_SYS_SDRAM_BASE 0x100000000 +#define CFG_SYS_SERIAL0 0x10000 +#define CFG_SYS_NS16550_CLK 1000000 + +#define BOOT_TARGET_DEVICES(func) \ + func(VIRTIO, virtio, 0) + +#include + +#define CFG_EXTRA_ENV_SETTINGS \ + "fdtfile=bhyve-riscv.dst\0" \ + "fdt_addr_r=0x100100000\0" \ + "kernel_addr_r=0x100200000\0" \ + BOOTENV + +#endif /* __CONFIG_H */