Skip to content
Snippets Groups Projects
Commit d4ee5043 authored by Fabio Estevam's avatar Fabio Estevam Committed by Stefano Babic
Browse files

warp7: Print secure/non-secure mode info


warp7 has two targets:

- warp7_defconfig: boots in non-secure mode
- warp7_secure_defconfig: boots in secure mode

Print the mode that is being used to help users to easily identify
which target is running on the board.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
parent ca4f338e
Branches
Tags
No related merge requests found
......@@ -152,7 +152,14 @@ int board_init(void)
int checkboard(void)
{
puts("Board: WARP7\n");
char *mode;
if (IS_ENABLED(CONFIG_ARMV7_BOOT_SEC_DEFAULT))
mode = "secure";
else
mode = "non-secure";
printf("Board: WARP7 in %s mode\n", mode);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment