]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/warp7/warp7.c
warp7: Print secure/non-secure mode info
[people/ms/u-boot.git] / 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;
 }