armv8: semihosting: add a command to load semihosted images
[oweals/u-boot.git] / arch / arm / lib / reset.c
index 7a0358071ced67b39f7f9f77cf261c827659e276..9a95f085044ade0c8f62fe489263c455b08df221 100644 (file)
 
 #include <common.h>
 
+__weak void reset_misc(void)
+{
+}
+
 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        puts ("resetting ...\n");
@@ -30,6 +34,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        udelay (50000);                         /* wait 50 ms */
 
        disable_interrupts();
+
+       reset_misc();
        reset_cpu(0);
 
        /*NOTREACHED*/