Browse Source

riscv: add reset_misc function (__weak)

Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
TekkamanV 2 years ago
parent
commit
78475bb791
2 changed files with 7 additions and 0 deletions
  1. 2 0
      arch/riscv/include/asm/u-boot-riscv.h
  2. 5 0
      arch/riscv/lib/reset.c

+ 2 - 0
arch/riscv/include/asm/u-boot-riscv.h

@@ -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_ */

+ 5 - 0
arch/riscv/lib/reset.c

@@ -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();