summaryrefslogtreecommitdiff
path: root/include/sbi
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-11-24 07:43:16 +0300
committerAnup Patel <anup@brainfault.org>2020-12-01 14:35:12 +0300
commitc4acc60a4694a45ac154948efa300adbf30d0425 (patch)
tree4f87822115de7fc653965d28eada29ac27f7fa94 /include/sbi
parent54a7734d86fb43d3a7892d474c7d4593f34c124e (diff)
downloadopensbi-c4acc60a4694a45ac154948efa300adbf30d0425.tar.xz
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>
Diffstat (limited to 'include/sbi')
-rw-r--r--include/sbi/sbi_platform.h4
-rw-r--r--include/sbi/sbi_system.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h
index e1355d8..b06aaa6 100644
--- a/include/sbi/sbi_platform.h
+++ b/include/sbi/sbi_platform.h
@@ -40,6 +40,7 @@
#ifndef __ASSEMBLY__
+#include <sbi/sbi_ecall_interface.h>
#include <sbi/sbi_error.h>
#include <sbi/sbi_scratch.h>
#include <sbi/sbi_version.h>
@@ -137,9 +138,6 @@ struct sbi_platform_operations {
int (*hart_stop)(void);
/** Reset the platform */
-#define SBI_PLATFORM_RESET_SHUTDOWN 0
-#define SBI_PLATFORM_RESET_COLD 1
-#define SBI_PLATFORM_RESET_WARM 2
int (*system_reset)(u32 reset_type);
/** platform specific SBI extension implementation probe function */
diff --git a/include/sbi/sbi_system.h b/include/sbi/sbi_system.h
index d44ef12..309e263 100644
--- a/include/sbi/sbi_system.h
+++ b/include/sbi/sbi_system.h
@@ -12,6 +12,6 @@
#include <sbi/sbi_types.h>
-void __noreturn sbi_system_reset(u32 platform_reset_type);
+void __noreturn sbi_system_reset(u32 reset_type);
#endif