2 * Copyright 2015 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <fsl_validate.h>
11 static int do_esbc_halt(cmd_tbl_t *cmdtp, int flag, int argc,
14 printf("Core is entering spin loop.\n");
21 static int do_esbc_validate(cmd_tbl_t *cmdtp, int flag, int argc,
25 return cmd_usage(cmdtp);
27 return fsl_secboot_validate(cmdtp, flag, argc, argv);
30 /***************************************************/
31 static char esbc_validate_help_text[] =
32 "esbc_validate hdr_addr <hash_val> - Validates signature using\n"
34 " $hdr_addr Address of header of the image\n"
36 " $hash_val -Optional\n"
37 " It provides Hash of public/srk key to be\n"
38 " used to verify signature.\n";
41 esbc_validate, 3, 0, do_esbc_validate,
42 "Validates signature on a given image using RSA verification",
43 esbc_validate_help_text
47 esbc_halt, 1, 0, do_esbc_halt,
48 "Put the core in spin loop ",