riscv: add reset_misc function (__weak)

Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
This commit is contained in:
TekkamanV 2021-08-07 10:16:21 +08:00 committed by Tekkaman Ninja
parent 8576ec63d1
commit 282b348110
2 changed files with 7 additions and 0 deletions

View file

@ -20,4 +20,6 @@ void board_quiesce_devices(void);
int riscv_board_reserved_mem_fixup(void *fdt);
int riscv_fdt_copy_resv_mem_node(const void *src_fdt, void *dest_fdt);
void reset_misc(void);
#endif /* _U_BOOT_RISCV_H_ */

View file

@ -7,10 +7,15 @@
#include <command.h>
#include <hang.h>
__weak void reset_misc(void)
{
}
int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
printf("resetting ...\n");
reset_misc();
printf("reset not supported yet\n");
hang();