]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: Include syscon_power device driver in GENERIC kernel config
authorjrtc27 <jrtc27@FreeBSD.org>
Sun, 26 Jul 2020 18:21:02 +0000 (18:21 +0000)
committerjrtc27 <jrtc27@FreeBSD.org>
Sun, 26 Jul 2020 18:21:02 +0000 (18:21 +0000)
commit35b0e4c06074dba7eb5db03694b0e4b07e953ae5
treecc006278bc635acd163c33a9a73afbf565776faa
parent7896c4c1fb17c9ef6fa4ef10c58be681ce5cd1c4
riscv: Include syscon_power device driver in GENERIC kernel config

QEMU's RISC-V virt machine provides syscon-power and syscon-reset
devices as the means by which to shutdown and reboot. We also need to
ensure that we have attached the syscon_generic device before attaching
any syscon_power devices, and so we introduce a new riscv_syscon device
akin to aw_syscon added in r327936. Currently the SiFive test finisher
is used as the specific implementation of such a syscon device.

Reviewed by: br, brooks (mentor), jhb (mentor)
Approved by: br, brooks (mentor), jhb (mentor)
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D25725
sys/conf/files.riscv
sys/riscv/conf/GENERIC
sys/riscv/riscv/riscv_syscon.c [new file with mode: 0644]