OSDN Git Service

riscv/virt: Add syscon reboot and poweroff DT nodes
authorAnup Patel <Anup.Patel@wdc.com>
Wed, 22 Jan 2020 13:17:23 +0000 (13:17 +0000)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 10 Feb 2020 20:01:35 +0000 (12:01 -0800)
commit0e404da00737eaa69204e7f3446b85b57d397e4a
treeb7c6bda9d80ad39090de42a8196fa8dbbe5ad752
parent81a23caf47956778c5a5056ad656d1ef92bf9659
riscv/virt: Add syscon reboot and poweroff DT nodes

The SiFive test device found on virt machine can be used by
generic syscon reboot and poweroff drivers available in Linux
kernel.

This patch updates FDT generation in virt machine so that
Linux kernel can probe and use generic syscon drivers.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
hw/riscv/virt.c