mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
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:
@@ -24,11 +24,11 @@ int sifive_test_system_reset(u32 type)
|
||||
* was successful so that QEMU exits
|
||||
*/
|
||||
switch (type) {
|
||||
case SBI_PLATFORM_RESET_SHUTDOWN:
|
||||
case SBI_SRST_RESET_TYPE_SHUTDOWN:
|
||||
writew(FINISHER_PASS, sifive_test_base);
|
||||
break;
|
||||
case SBI_PLATFORM_RESET_COLD:
|
||||
case SBI_PLATFORM_RESET_WARM:
|
||||
case SBI_SRST_RESET_TYPE_COLD_REBOOT:
|
||||
case SBI_SRST_RESET_TYPE_WARM_REBOOT:
|
||||
writew(FINISHER_RESET, sifive_test_base);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user