]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add syscon power and reset control device driver
authorJessica Clarke <jrtc27@FreeBSD.org>
Sun, 26 Jul 2020 18:19:50 +0000 (18:19 +0000)
committerJessica Clarke <jrtc27@FreeBSD.org>
Sun, 26 Jul 2020 18:19:50 +0000 (18:19 +0000)
commit28da7c9ed0f28f79a819b4003b32e81a3fdf55b5
tree1cab28380dabd26fed373a253204a8cdabb2c84e
parent4f8212c8b28fe5d87e9109cfc0e19c9396c97e8f
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]