MLK-17050 imx8m: print out atf commit
Print out atf commit in U-Boot. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit df89948806c38e38119767a67ef0e18f24ac886b)
This commit is contained in:
parent
22a32f6d59
commit
3a17aa1659
|
|
@ -19,6 +19,7 @@
|
|||
#include <fdt_support.h>
|
||||
#include <fsl_wdog.h>
|
||||
#include <imx_sip.h>
|
||||
#include <generated/version_autogenerated.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
|
|
@ -292,3 +293,30 @@ void reset_cpu(ulong addr)
|
|||
*/
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ARCH_MISC_INIT)
|
||||
#define FSL_SIP_BUILDINFO 0xC2000003
|
||||
#define FSL_SIP_BUILDINFO_GET_COMMITHASH 0x00
|
||||
static void acquire_buildinfo(void)
|
||||
{
|
||||
uint64_t atf_commit = 0;
|
||||
|
||||
/* Get ARM Trusted Firmware commit id */
|
||||
atf_commit = call_imx_sip(FSL_SIP_BUILDINFO,
|
||||
FSL_SIP_BUILDINFO_GET_COMMITHASH, 0, 0, 0);
|
||||
if (atf_commit == 0xffffffff) {
|
||||
debug("ATF does not support build info\n");
|
||||
atf_commit = 0x30; /* Display 0, 0 ascii is 0x30 */
|
||||
}
|
||||
|
||||
printf("\n BuildInfo:\n - ATF %s\n - %s\n\n", (char *)&atf_commit,
|
||||
U_BOOT_VERSION);
|
||||
}
|
||||
|
||||
int arch_misc_init(void)
|
||||
{
|
||||
acquire_buildinfo();
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x40200000
|
|||
CONFIG_SYS_MALLOC_F_LEN=0x2000
|
||||
CONFIG_TARGET_IMX8MQ_EVK=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg"
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL=y
|
||||
CONFIG_SPL_BOARD_INIT=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
|
|
|
|||
Loading…
Reference in New Issue