提交 76b21efd 编写于 作者: F Fabio Estevam 提交者: Stefano Babic

mx7dsabresd: Print secure/non-secure mode info

mx7dsabresd has two targets:

- mx7dsabresd_defconfig: boots in non-secure mode
- mx7dsabresd_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: NFabio Estevam <fabio.estevam@nxp.com>
上级 2a83c95f
...@@ -609,7 +609,14 @@ int board_late_init(void) ...@@ -609,7 +609,14 @@ int board_late_init(void)
int checkboard(void) int checkboard(void)
{ {
puts("Board: i.MX7D SABRESD\n"); char *mode;
if (IS_ENABLED(CONFIG_ARMV7_BOOT_SEC_DEFAULT))
mode = "secure";
else
mode = "non-secure";
printf("Board: i.MX7D SABRESD in %s mode\n", mode);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册