forked from Mirrors/opensbi

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>
18 lines
319 B
C
18 lines
319 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2019 Western Digital Corporation or its affiliates.
|
|
*
|
|
* Authors:
|
|
* Anup Patel <anup.patel@wdc.com>
|
|
*/
|
|
|
|
#ifndef __SBI_SYSTEM_H__
|
|
#define __SBI_SYSTEM_H__
|
|
|
|
#include <sbi/sbi_types.h>
|
|
|
|
void __noreturn sbi_system_reset(u32 platform_reset_type);
|
|
|
|
#endif
|