summaryrefslogtreecommitdiff
path: root/platform/template
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-04-22 09:23:32 +0300
committerAnup Patel <anup@brainfault.org>2021-04-28 14:55:00 +0300
commit043d088e3964ec64b091f739e2282f53f7d264fb (patch)
treee5ec82451c097df3f3416ec077752527d81107a7 /platform/template
parentdc39c7b630a607b96c25f8ea50f0bb1af619928a (diff)
downloadopensbi-043d088e3964ec64b091f739e2282f53f7d264fb.tar.xz
lib: sbi: Simplify system reset platform operations
Instead of having system_reset_check() and system_reset() callbacks in platform operations, it will be much simpler for reset driver to directly register these operations as a device to the sbi_system implementation. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'platform/template')
-rw-r--r--platform/template/platform.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c
index 04334b2..d407fd5 100644
--- a/platform/template/platform.c
+++ b/platform/template/platform.c
@@ -116,21 +116,6 @@ static int platform_timer_init(bool cold_boot)
}
/*
- * Check reset type and reason supported by the platform.
- */
-static int platform_system_reset_check(u32 type, u32 reason)
-{
- return 0;
-}
-
-/*
- * Reset the platform.
- */
-static void platform_system_reset(u32 type, u32 reason)
-{
-}
-
-/*
* Platform descriptor.
*/
const struct sbi_platform_operations platform_ops = {
@@ -139,9 +124,7 @@ const struct sbi_platform_operations platform_ops = {
.console_init = platform_console_init,
.irqchip_init = platform_irqchip_init,
.ipi_init = platform_ipi_init,
- .timer_init = platform_timer_init,
- .system_reset_check = platform_system_reset_check,
- .system_reset = platform_system_reset
+ .timer_init = platform_timer_init
};
const struct sbi_platform platform = {
.opensbi_version = OPENSBI_VERSION,