projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git]
/
board
/
freescale
/
common
/
cmd_esbc_validate.c
diff --git
a/board/freescale/common/cmd_esbc_validate.c
b/board/freescale/common/cmd_esbc_validate.c
index b3e5f019b87b2094a72880517f827ad4dd126893..638aa3c19a4d3a0ece85068fbfa62635cb5ff57f 100644
(file)
--- a/
board/freescale/common/cmd_esbc_validate.c
+++ b/
board/freescale/common/cmd_esbc_validate.c
@@
-1,15
+1,15
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2015 Freescale Semiconductor, Inc.
/*
* Copyright 2015 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <command.h>
*/
#include <common.h>
#include <command.h>
+#include <env.h>
#include <fsl_validate.h>
#include <fsl_validate.h>
-int do_esbc_halt(
cmd_tbl_t
*cmdtp, int flag, int argc,
-
char *
const argv[])
+int do_esbc_halt(
struct cmd_tbl
*cmdtp, int flag, int argc,
+
char *
const argv[])
{
if (fsl_check_boot_mode_secure() == 0) {
printf("Boot Mode is Non-Secure. Not entering spin loop.\n");
{
if (fsl_check_boot_mode_secure() == 0) {
printf("Boot Mode is Non-Secure. Not entering spin loop.\n");
@@
-23,8
+23,9
@@
loop:
return 0;
}
return 0;
}
-static int do_esbc_validate(cmd_tbl_t *cmdtp, int flag, int argc,
- char * const argv[])
+#ifndef CONFIG_SPL_BUILD
+static int do_esbc_validate(struct cmd_tbl *cmdtp, int flag, int argc,
+ char *const argv[])
{
char *hash_str = NULL;
uintptr_t haddr;
{
char *hash_str = NULL;
uintptr_t haddr;
@@
-82,3
+83,4
@@
U_BOOT_CMD(
"Put the core in spin loop (Secure Boot Only)",
""
);
"Put the core in spin loop (Secure Boot Only)",
""
);
+#endif