diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-04-24 12:26:22 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-04-27 14:35:29 +0530 |
commit | a9eac67ad019200e9a281a6fc10e394353a026f2 (patch) | |
tree | bb99209d3573cfc5a6e0a2617163a160e5e452a7 /platform/thead/c910/platform.c | |
parent | 1bb00ab3aeabde78579774eef8eadc7b7e765924 (diff) |
include: sbi_platform: Combine reboot and shutdown into one callback
We can achieve shutdown, cold reboot, and warm reboot using just
one sbi_platform callback so we combine system_reboot() and
system_shutdown() callbacks into one system_reset() callback.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'platform/thead/c910/platform.c')
-rw-r--r-- | platform/thead/c910/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/thead/c910/platform.c b/platform/thead/c910/platform.c index adb1a20..82f910a 100644 --- a/platform/thead/c910/platform.c +++ b/platform/thead/c910/platform.c @@ -100,7 +100,7 @@ static int c910_timer_init(bool cold_boot) return clint_warm_timer_init(); } -static int c910_system_shutdown(u32 type) +static int c910_system_reset(u32 type) { asm volatile ("ebreak"); return 0; @@ -127,7 +127,7 @@ const struct sbi_platform_operations platform_ops = { .timer_init = c910_timer_init, .timer_event_start = clint_timer_event_start, - .system_shutdown = c910_system_shutdown, + .system_reset = c910_system_reset, .hart_start = c910_hart_start, }; |