MA-9909-2 [iot] uboot run into no-secure mode by default
authorChen Guoyin <guoyin.chen@nxp.com>
Thu, 13 Jul 2017 07:47:22 +0000 (15:47 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:02 +0000 (02:37 +0800)
Add log to indicate whether the board is in secure mode

Change-Id: I67544498c7ee7b591ce1f6cac899cee9e5867e3e
Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
board/freescale/pico-imx7d/pico-imx7d.c

index df82936..3442c4c 100755 (executable)
@@ -646,7 +646,13 @@ u32 get_board_rev(void)
 
 int checkboard(void)
 {
-       puts("Board: i.MX7D PICOSOM\n");
+       char *mode;
+       if (IS_ENABLED(CONFIG_ARMV7_BOOT_SEC_DEFAULT))
+               mode = "secure";
+       else
+               mode = "non-secure";
+
+       printf("Board: i.MX7D PICOSOM in %s mode\n", mode);
 
        return 0;
 }