forked from Mirrors/opensbi
include: sbi: Remove opensbi specific reset type defines
We can now use the standard SBI SRST extension reset types instead of the opensbi specific (SBI_PLATFORM_RESET_xyz) reset types hence remove related opensbi specific defines. The "platform_" prefix of the reset type parameter of sbi_system_reset() function should also be removed. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include <sbi/sbi_ipi.h>
|
||||
#include <sbi/sbi_init.h>
|
||||
|
||||
void __noreturn sbi_system_reset(u32 platform_reset_type)
|
||||
void __noreturn sbi_system_reset(u32 reset_type)
|
||||
{
|
||||
ulong hbase = 0, hmask;
|
||||
u32 cur_hartid = current_hartid();
|
||||
@@ -40,7 +40,7 @@ void __noreturn sbi_system_reset(u32 platform_reset_type)
|
||||
/* Platform specific reset if domain allowed system reset */
|
||||
if (dom->system_reset_allowed)
|
||||
sbi_platform_system_reset(sbi_platform_ptr(scratch),
|
||||
platform_reset_type);
|
||||
reset_type);
|
||||
|
||||
/* If platform specific reset did not work then do sbi_exit() */
|
||||
sbi_exit(scratch);
|
||||
|
Reference in New Issue
Block a user