include: sbi_platform: Combine reboot and shutdown into one callback
authorAnup Patel <anup.patel@wdc.com>
Fri, 24 Apr 2020 06:56:22 +0000 (12:26 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 27 Apr 2020 09:05:29 +0000 (14:35 +0530)
commita9eac67ad019200e9a281a6fc10e394353a026f2
treebb99209d3573cfc5a6e0a2617163a160e5e452a7
parent1bb00ab3aeabde78579774eef8eadc7b7e765924
include: sbi_platform: Combine reboot and shutdown into one callback

We can achieve shutdown, cold reboot, and warm reboot using just
one sbi_platform callback so we combine system_reboot() and
system_shutdown() callbacks into one system_reset() callback.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
15 files changed:
include/sbi/sbi_platform.h
include/sbi/sbi_system.h
include/sbi_utils/sys/htif.h
lib/sbi/sbi_ecall_legacy.c
lib/sbi/sbi_system.c
lib/utils/sys/htif.c
platform/andes/ae350/platform.c
platform/fpga/ariane/platform.c
platform/fpga/openpiton/platform.c
platform/kendryte/k210/platform.c
platform/qemu/virt/platform.c
platform/sifive/fu540/platform.c
platform/spike/platform.c
platform/template/platform.c
platform/thead/c910/platform.c