diff mbox series

[4/5] riscv: qemu: Add syscon reboot and poweroff support

Message ID 1592890186-18082-4-git-send-email-bmeng.cn@gmail.com
State Accepted
Commit a0cc38ab44b0fa8af65632cbea1b13630195f03d
Delegated to: Andes
Headers show
Series [1/5] sysreset: syscon: Don't assume default value for offset and mask property | expand

Commit Message

Bin Meng June 23, 2020, 5:29 a.m. UTC
From: Bin Meng <bin.meng@windriver.com>

This adds syscon reboot and poweroff support to QEMU RISC-V.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
---

 board/emulation/qemu-riscv/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Pragnesh Patel June 26, 2020, 7:05 a.m. UTC | #1
>-----Original Message-----
>From: Bin Meng <bmeng.cn@gmail.com>
>Sent: 23 June 2020 11:00
>To: Rick Chen <rick@andestech.com>; Simon Glass <sjg@chromium.org>;
>Pragnesh Patel <pragnesh.patel@sifive.com>; Sagar Kadam
><sagar.kadam@sifive.com>; U-Boot Mailing List <u-boot@lists.denx.de>
>Cc: Bin Meng <bin.meng@windriver.com>
>Subject: [PATCH 4/5] riscv: qemu: Add syscon reboot and poweroff support
>
>[External Email] Do not click links or attachments unless you recognize the
>sender and know the content is safe
>
>From: Bin Meng <bin.meng@windriver.com>
>
>This adds syscon reboot and poweroff support to QEMU RISC-V.
>
>Signed-off-by: Bin Meng <bin.meng@windriver.com>
>---
>
> board/emulation/qemu-riscv/Kconfig | 4 ++++
> 1 file changed, 4 insertions(+)

Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
diff mbox series

Patch

diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig
index ad99b08..617c4aa 100644
--- a/board/emulation/qemu-riscv/Kconfig
+++ b/board/emulation/qemu-riscv/Kconfig
@@ -53,5 +53,9 @@  config BOARD_SPECIFIC_OPTIONS # dummy
 	imply NVME
 	imply SPL_RAM_SUPPORT
 	imply SPL_RAM_DEVICE
+	imply SYSRESET
+	imply SYSRESET_SYSCON
+	imply CMD_POWEROFF
+	imply SYSRESET_CMD_POWEROFF
 
 endif