From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] warp7: Print secure/non-secure mode info
Date: Thu, 25 Aug 2016 17:57:45 -0300 [thread overview]
Message-ID: <1472158665-14240-3-git-send-email-festevam@gmail.com> (raw)
In-Reply-To: <1472158665-14240-1-git-send-email-festevam@gmail.com>
From: Fabio Estevam <fabio.estevam@nxp.com>
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 | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index 27e31f3..d3d2a0e 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -95,7 +95,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;
}
--
1.9.1
next prev parent reply other threads:[~2016-08-25 20:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-25 20:57 [U-Boot] [PATCH 1/3] warp7: Add a secure mode target Fabio Estevam
2016-08-25 20:57 ` [U-Boot] [PATCH 2/3] warp7: Handle mmcroot for mainline and NXP Fabio Estevam
2016-08-25 20:57 ` Fabio Estevam [this message]
2016-08-25 21:02 ` [U-Boot] [PATCH 1/3] warp7: Add a secure mode target Otavio Salvador
2016-08-25 22:11 ` Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1472158665-14240-3-git-send-email-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox