From: Fabio Estevam Date: Fri, 26 Aug 2016 00:07:20 +0000 (-0300) Subject: warp7: Print secure/non-secure mode info X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d4ee5043f36e7a418c3fb5be2e76eb5f6ee2cd9f;p=u-boot.git 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: Fabio Estevam --- diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index cffee4a199..da9afb4ccd 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -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; }