Merge branch 'master' of git://www.denx.de/git/u-boot-socfpga
[oweals/u-boot.git] / board / freescale / common / cmd_esbc_validate.c
index 8500ba583838f5a46c6a3f7d45913a0fee800696..8bbe85bb3ba616574881da7d13b311c1d61ed105 100644 (file)
@@ -8,6 +8,16 @@
 #include <command.h>
 #include <fsl_validate.h>
 
+static int do_esbc_halt(cmd_tbl_t *cmdtp, int flag, int argc,
+                               char * const argv[])
+{
+       printf("Core is entering spin loop.\n");
+loop:
+       goto loop;
+
+       return 0;
+}
+
 static int do_esbc_validate(cmd_tbl_t *cmdtp, int flag, int argc,
                                char * const argv[])
 {
@@ -32,3 +42,9 @@ U_BOOT_CMD(
        "Validates signature on a given image using RSA verification",
        esbc_validate_help_text
 );
+
+U_BOOT_CMD(
+       esbc_halt,      1,      0,      do_esbc_halt,
+       "Put the core in spin loop ",
+       ""
+);