Skip to content

Commit 81e2d3c

Browse files
avpatelpalmer-dabbelt
authored andcommitted
RISC-V: Select SYSCON Reboot and Poweroff for QEMU virt machine
The SYSCON Reboot and Poweroff drivers can be used on QEMU virt machine to reboot or poweroff the system hence we select these drivers using QEMU virt machine kconfig option. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent a448539 commit 81e2d3c

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

arch/riscv/Kconfig.socs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ config SOC_VIRT
2626
select RPMSG_VIRTIO
2727
select CRYPTO_DEV_VIRTIO
2828
select VIRTIO_INPUT
29+
select POWER_RESET_SYSCON
30+
select POWER_RESET_SYSCON_POWEROFF
2931
select SIFIVE_PLIC
3032
help
3133
This enables support for QEMU Virt Machine.

arch/riscv/configs/defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ CONFIG_HW_RANDOM=y
5858
CONFIG_SPI=y
5959
CONFIG_SPI_SIFIVE=y
6060
# CONFIG_PTP_1588_CLOCK is not set
61+
CONFIG_POWER_RESET=y
6162
CONFIG_DRM=y
6263
CONFIG_DRM_RADEON=y
6364
CONFIG_FRAMEBUFFER_CONSOLE=y

arch/riscv/configs/rv32_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ CONFIG_SERIAL_EARLYCON_RISCV_SBI=y
5656
CONFIG_HVC_RISCV_SBI=y
5757
CONFIG_HW_RANDOM=y
5858
# CONFIG_PTP_1588_CLOCK is not set
59+
CONFIG_POWER_RESET=y
5960
CONFIG_DRM=y
6061
CONFIG_DRM_RADEON=y
6162
CONFIG_FRAMEBUFFER_CONSOLE=y

0 commit comments

Comments
 (0)