* [U-Boot] [PATCH] mx7dsabresd: Print secure/non-secure mode info
@ 2016-07-28 23:49 Fabio Estevam
2016-08-03 7:58 ` Stefano Babic
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2016-07-28 23:49 UTC (permalink / raw)
To: u-boot
From: Fabio Estevam <fabio.estevam@nxp.com>
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>
---
board/freescale/mx7dsabresd/mx7dsabresd.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c
index 1f4fc03..3098e1a 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;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [U-Boot] [PATCH] mx7dsabresd: Print secure/non-secure mode info
2016-07-28 23:49 [U-Boot] [PATCH] mx7dsabresd: Print secure/non-secure mode info Fabio Estevam
@ 2016-08-03 7:58 ` Stefano Babic
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2016-08-03 7:58 UTC (permalink / raw)
To: u-boot
On 29/07/2016 01:49, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> 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>
Applied to -u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-03 7:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 23:49 [U-Boot] [PATCH] mx7dsabresd: Print secure/non-secure mode info Fabio Estevam
2016-08-03 7:58 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox