From 3994f5bc18d96ae6877d58b9a49fb3276c0792ae Mon Sep 17 00:00:00 2001 From: Mitchell Horne Date: Tue, 22 Sep 2020 13:00:02 +0000 Subject: [PATCH] RISC-V: build SiFive drivers and DTB in GENERIC In the spirit of the GENERIC config, we should include the drivers required to run on most supported platforms. Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D26501 --- sys/riscv/conf/GENERIC | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/riscv/conf/GENERIC b/sys/riscv/conf/GENERIC index 4f7c8067a54b..e6a540b01165 100644 --- a/sys/riscv/conf/GENERIC +++ b/sys/riscv/conf/GENERIC @@ -163,4 +163,10 @@ device firmware # firmware assist module # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter +# Flattened Device Tree options FDT +makeoptions MODULES_EXTRA+="dtb/sifive" + +# SiFive device drivers +device fu540spi +include "../sifive/std.sifive"