mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-15 19:51:37 +00:00
riscv: add reset_misc function (__weak)
Signed-off-by: Wei Fu <wefu@redhat.com>
This commit is contained in:
parent
803349d956
commit
ae8609677b
2 changed files with 7 additions and 0 deletions
|
@ -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_ */
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue