]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
warp7: Print secure/non-secure mode info
authorFabio Estevam <fabio.estevam@nxp.com>
Fri, 26 Aug 2016 00:07:20 +0000 (21:07 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 6 Sep 2016 16:22:48 +0000 (18:22 +0200)
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: Fabio Estevam <fabio.estevam@nxp.com>
board/warp7/warp7.c

index cffee4a19965ab9a8e4439ae90e299e21d831d7b..da9afb4ccd86639e4e63952e8c84ffc1d62684e9 100644 (file)
@@ -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;
 }