diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-08-25 21:07:20 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-09-06 18:22:48 +0200 |
commit | d4ee5043f36e7a418c3fb5be2e76eb5f6ee2cd9f (patch) | |
tree | 0a42e010d1cd72b99a6ec0cade2e7c26c24428a4 /board/warp7 | |
parent | ca4f338e2efece5196eb2178e5f7d07be828da6e (diff) | |
download | u-boot-d4ee5043f36e7a418c3fb5be2e76eb5f6ee2cd9f.tar.gz |
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 <fabio.estevam@nxp.com>
Diffstat (limited to 'board/warp7')
-rw-r--r-- | board/warp7/warp7.c | 9 |
1 files changed, 8 insertions, 1 deletions
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; } |