blob: 4e352b4b6adc53e455b2bb20afaa975150b4717b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- 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 <linux/sizes.h>
+
+#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 <config_distro_bootcmd.h>
+
+#define CFG_EXTRA_ENV_SETTINGS \
+ "fdtfile=bhyve-riscv.dst\0" \
+ "fdt_addr_r=0x100100000\0" \
+ "kernel_addr_r=0x100200000\0" \
+ BOOTENV
+
+#endif /* __CONFIG_H */
|