Skip to contentSkip to conversation

mx7dsabresd: Print secure/non-secure mode info

PATCH New Fabio Estevam 2 participants 2 messages Jul 28, 2016 – Aug 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx7dsabresd: Print secure/non-secure mode info

From: Fabio Estevam <[email protected]>

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.

---
 board/freescale/mx7dsabresd/mx7dsabresd.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
board/freescale/mx7dsabresd/mx7dsabresd.c +8 -1
index 1f4fc03..3098e1a 100644
@@ -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;
 }
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 mx7dsabresd: Print secure/non-secure mode info

Quoted 11 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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.

Applied to -u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================