lib: sbi: Improve system reset platform operations
authorAnup Patel <anup.patel@wdc.com>
Tue, 24 Nov 2020 06:29:05 +0000 (11:59 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 1 Dec 2020 11:40:31 +0000 (17:10 +0530)
commit5c429ae2133e1a82b81403146a3e38e2b4b8350e
tree09b02a0042a7ba5697e2f44082d08d05db147b3f
parentda074796df871f6323d052f123b7668d390980dc
lib: sbi: Improve system reset platform operations

To implement the SBI SRST extension, we need two platform operations
for system reset:
1) system_reset_check() - This operation will check whether given
   reset type and reason are supported by the platform
2) system_reset() - This operation will do the actual platform
   system reset and it will not return if reset type and reason
   are supported by the platform

This patch updates system reset related code everywhere as-per above.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
17 files changed:
include/sbi/sbi_platform.h
include/sbi/sbi_system.h
include/sbi_utils/reset/fdt_reset.h
include/sbi_utils/sys/htif.h
include/sbi_utils/sys/sifive_test.h
lib/sbi/sbi_ecall_legacy.c
lib/sbi/sbi_system.c
lib/utils/reset/fdt_reset.c
lib/utils/reset/fdt_reset_htif.c
lib/utils/reset/fdt_reset_sifive.c
lib/utils/sys/htif.c
lib/utils/sys/sifive_test.c
platform/generic/include/platform_override.h
platform/generic/platform.c
platform/nuclei/ux600/platform.c
platform/template/platform.c
platform/thead/c910/platform.c