summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTekkamanV <tekkamanv@starfivetech.com>2021-08-07 05:16:21 +0300
committerTekkaman Ninja <tekkamanninja@163.com>2021-09-29 09:51:21 +0300
commitd4362d5fabcc8e19d8143a7ffe0ee9da6ababd01 (patch)
tree993d4b79d41d320b719e6fda39eaf50a23d071b9
parent704f73a31afeda123e296572f0fc02dc78d2e003 (diff)
downloadu-boot-d4362d5fabcc8e19d8143a7ffe0ee9da6ababd01.tar.xz
riscv: add reset_misc function (__weak)
Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
-rw-r--r--arch/riscv/include/asm/u-boot-riscv.h2
-rw-r--r--arch/riscv/lib/reset.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/u-boot-riscv.h b/arch/riscv/include/asm/u-boot-riscv.h
index 543a1688db..c122397bd7 100644
--- a/arch/riscv/include/asm/u-boot-riscv.h
+++ b/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_ */
diff --git a/arch/riscv/lib/reset.c b/arch/riscv/lib/reset.c
index 8779c619cc..ab4c5671de 100644
--- a/arch/riscv/lib/reset.c
+++ b/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();