diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-07-28 20:49:46 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-09-06 18:22:48 +0200 |
commit | 76b21efd555b9bc7e4e7fb8ebc7de2558403731a (patch) | |
tree | bfc5e7e1f346d8eab02a8ec2a2750bbe0bde2014 /board/freescale/mx7dsabresd | |
parent | 2a83c95fdb9c2f735d1c30c71bc52f6fd8aa0f97 (diff) | |
download | u-boot-76b21efd555b9bc7e4e7fb8ebc7de2558403731a.tar.gz |
mx7dsabresd: Print secure/non-secure mode info
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>
Diffstat (limited to 'board/freescale/mx7dsabresd')
-rw-r--r-- | board/freescale/mx7dsabresd/mx7dsabresd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c index 1f4fc03c8f..3098e1a3dd 100644 --- a/board/freescale/mx7dsabresd/mx7dsabresd.c +++ b/board/freescale/mx7dsabresd/mx7dsabresd.c @@ -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; } |