mx7dsabresd: Print secure/non-secure mode info
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.
Signed-off-by Fabio Estevam <[email protected]>
--- board/freescale/mx7dsabresd/mx7dsabresd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
board/freescale/mx7dsabresd/mx7dsabresd.c +8 -1
@@ -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
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 modePrint the mode that is being used to help users to easily identify which target is running on the board.
Signed-off-by Fabio Estevam <[email protected]>
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 =====================================================================