mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
Add a new driver for the 'virt-ctrl' device found on QEMU virt machines (e.g. m68k). This device provides a simple interface for system reset and power off [1]. This driver utilizes the modern system-off API to register callbacks for both system restart and power off. It also registers a reboot notifier to catch SYS_HALT events, ensuring that LINUX_REBOOT_CMD_HALT is properly handled. It is designed to be generic and can be reused by other architectures utilizing this QEMU device. Link: https://gitlab.com/qemu-project/qemu/-/blob/v10.2.0/hw/misc/virt_ctrl.c [1] Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://patch.msgid.link/20260412211952.3564033-2-visitorckw@gmail.com Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
45 lines
2.4 KiB
Makefile
45 lines
2.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_AT91_POWEROFF) += at91-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_AT91_RESET) += at91-reset.o
|
|
obj-$(CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC) += at91-sama5d2_shdwc.o
|
|
obj-$(CONFIG_POWER_RESET_ATC260X) += atc260x-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_AXXIA) += axxia-reset.o
|
|
obj-$(CONFIG_POWER_RESET_BRCMKONA) += brcm-kona-reset.o
|
|
obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o
|
|
obj-$(CONFIG_POWER_RESET_EP93XX) += ep93xx-restart.o
|
|
obj-$(CONFIG_POWER_RESET_GEMINI_POWEROFF) += gemini-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_GPIO) += gpio-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_GPIO_RESTART) += gpio-restart.o
|
|
obj-$(CONFIG_POWER_RESET_HISI) += hisi-reboot.o
|
|
obj-$(CONFIG_POWER_RESET_LINKSTATION) += linkstation-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_MACSMC) += macsmc-reboot.o
|
|
obj-$(CONFIG_POWER_RESET_MSM) += msm-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_MT6323) += mt6323-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_QCOM_PON) += qcom-pon.o
|
|
obj-$(CONFIG_POWER_RESET_OCELOT_RESET) += ocelot-reset.o
|
|
obj-$(CONFIG_POWER_RESET_ODROID_GO_ULTRA_POWEROFF) += odroid-go-ultra-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_PIIX4_POWEROFF) += piix4-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_LTC2952) += ltc2952-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_QNAP) += qnap-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_REGULATOR) += regulator-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_RESTART) += restart-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_SPACEMIT_P1) += spacemit-p1-reboot.o
|
|
obj-$(CONFIG_POWER_RESET_ST) += st-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_TH1520_AON) += th1520-aon-reboot.o
|
|
obj-$(CONFIG_POWER_RESET_TORADEX_EC) += tdx-ec-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_TPS65086) += tps65086-restart.o
|
|
obj-$(CONFIG_POWER_RESET_VERSATILE) += arm-versatile-reboot.o
|
|
obj-$(CONFIG_POWER_RESET_VEXPRESS) += vexpress-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_XGENE) += xgene-reboot.o
|
|
obj-$(CONFIG_POWER_RESET_KEYSTONE) += keystone-reset.o
|
|
obj-$(CONFIG_POWER_RESET_SYSCON) += syscon-reboot.o
|
|
obj-$(CONFIG_POWER_RESET_SYSCON_POWEROFF) += syscon-poweroff.o
|
|
obj-$(CONFIG_POWER_RESET_RMOBILE) += rmobile-reset.o
|
|
obj-$(CONFIG_REBOOT_MODE) += reboot-mode.o
|
|
obj-$(CONFIG_SYSCON_REBOOT_MODE) += syscon-reboot-mode.o
|
|
obj-$(CONFIG_POWER_RESET_SC27XX) += sc27xx-poweroff.o
|
|
obj-$(CONFIG_NVMEM_REBOOT_MODE) += nvmem-reboot-mode.o
|
|
obj-$(CONFIG_POWER_MLXBF) += pwr-mlxbf.o
|
|
obj-$(CONFIG_POWER_RESET_QEMU_VIRT_CTRL) += qemu-virt-ctrl.o
|