]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add syscon power and reset control device driver
authorjrtc27 <jrtc27@FreeBSD.org>
Sun, 26 Jul 2020 18:19:50 +0000 (18:19 +0000)
committerjrtc27 <jrtc27@FreeBSD.org>
Sun, 26 Jul 2020 18:19:50 +0000 (18:19 +0000)
commit7896c4c1fb17c9ef6fa4ef10c58be681ce5cd1c4
tree1cab28380dabd26fed373a253204a8cdabb2c84e
parent754558f531e11ab48a4c73b10906bd2941facfbf
Add syscon power and reset control device driver

This device driver supports both syscon-power and syscon-reset devices,
as specified in [1] and [2]. These provide a very simple interface for
power and reset control, and among other things are used by QEMU's virt
machine on RISC-V. A separate commit will enable this on RISC-V, as that
requires adding a RISC-V-specific riscv_syscon akin to r327936's
aw_syscon.

[1] https://www.kernel.org/doc/Documentation/devicetree/bindings/power/reset/syscon-poweroff.txt
[2] https://www.kernel.org/doc/Documentation/devicetree/bindings/power/reset/syscon-reboot.txt

Reviewed by: brooks (mentor), jhb (mentor)
Approved by: brooks (mentor), jhb (mentor)
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D25724
sys/conf/files
sys/dev/extres/syscon/syscon_power.c [new file with mode: 0644]