]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx7dsabresd: Print secure/non-secure mode info
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 28 Jul 2016 23:49:46 +0000 (20:49 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 6 Sep 2016 16:22:48 +0000 (18:22 +0200)
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: Fabio Estevam <fabio.estevam@nxp.com>
board/freescale/mx7dsabresd/mx7dsabresd.c

index 1f4fc03c8f558a2a3abc0cb2cf020b4a12e07028..3098e1a3dd80ca2c7465a75135affbe3ebc0d4f4 100644 (file)
@@ -609,7 +609,14 @@ int board_late_init(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;
 }