diff options
author | Wenbin Song <wenbin.song@nxp.com> | 2016-09-13 16:13:54 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-10-06 09:56:44 -0700 |
commit | 5d1a7a9d209fd9b8ffca1f3f27139f372a225e16 (patch) | |
tree | 1b6dad1a5dc76e6cccc93dc88bbf74e44f0adbd7 /arch/arm | |
parent | abd9c1bbfbdc9fbef0f178321c43e6fac108520a (diff) | |
download | u-boot-imx-5d1a7a9d209fd9b8ffca1f3f27139f372a225e16.zip u-boot-imx-5d1a7a9d209fd9b8ffca1f3f27139f372a225e16.tar.gz u-boot-imx-5d1a7a9d209fd9b8ffca1f3f27139f372a225e16.tar.bz2 |
armv8/fsl-layerscape: print SoC revsion number
The exact SoC revsion number can be recognized from U-Boot log.
Signed-off-by: Wenbin Song <wenbin.song@nxp.com>
Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c index f865373..11e806e 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c @@ -44,6 +44,9 @@ void cpu_name(char *name) if (IS_E_PROCESSOR(svr)) strcat(name, "E"); + + sprintf(name + strlen(name), " Rev%d.%d", + SVR_MAJ(svr), SVR_MIN(svr)); break; } |