[PATCH v6 4/8] sysreset: Add QEMU virtual system controller driver
Simon Glass
sjg at chromium.org
Fri Jan 9 12:31:49 CET 2026
On Wed, 7 Jan 2026 at 13:19, Kuan-Wei Chiu <visitorckw at gmail.com> wrote:
>
> Introduce a new sysreset driver for the QEMU Virtual System Controller.
> This device is found on QEMU "virt" machines (such as the m68k virt
> target) and provides a mechanism to trigger system reset and power-off
> events.
>
> The driver maps U-Boot sysreset types to the corresponding controller
> commands:
> - SYSRESET_WARM / SYSRESET_COLD -> VIRT_CTRL_CMD_RESET
> - SYSRESET_POWER_OFF -> VIRT_CTRL_CMD_HALT
>
> Signed-off-by: Kuan-Wei Chiu <visitorckw at gmail.com>
> ---
> Changes in v6:
> - Introduce new driver to replace board-file reset implementation.
>
> MAINTAINERS | 6 +++
> drivers/sysreset/Kconfig | 8 ++++
> drivers/sysreset/Makefile | 1 +
> drivers/sysreset/sysreset_qemu_virt_ctrl.c | 55 ++++++++++++++++++++++
> include/qemu_virt_ctrl.h | 13 +++++
> 5 files changed, 83 insertions(+)
> create mode 100644 drivers/sysreset/sysreset_qemu_virt_ctrl.c
> create mode 100644 include/qemu_virt_ctrl.h
>
Reviewed-by: Simon Glass <simon.glass at canonical.com>
More information about the U-Boot
mailing list