socfpga: implement arria V socdk SPI flash config in dts
[oweals/u-boot.git] / board / freescale / common / cmd_esbc_validate.c
1 /*
2  * Copyright 2015 Freescale Semiconductor, Inc.
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <common.h>
8 #include <command.h>
9 #include <fsl_validate.h>
10
11 static int do_esbc_validate(cmd_tbl_t *cmdtp, int flag, int argc,
12                                 char * const argv[])
13 {
14         if (argc < 2)
15                 return cmd_usage(cmdtp);
16
17         return fsl_secboot_validate(cmdtp, flag, argc, argv);
18 }
19
20 /***************************************************/
21 static char esbc_validate_help_text[] =
22         "esbc_validate hdr_addr <hash_val> - Validates signature using\n"
23         "                          RSA verification\n"
24         "                          $hdr_addr Address of header of the image\n"
25         "                          to be validated.\n"
26         "                          $hash_val -Optional\n"
27         "                          It provides Hash of public/srk key to be\n"
28         "                          used to verify signature.\n";
29
30 U_BOOT_CMD(
31         esbc_validate,  3,      0,      do_esbc_validate,
32         "Validates signature on a given image using RSA verification",
33         esbc_validate_help_text
34 );