From 5d1a7a9d209fd9b8ffca1f3f27139f372a225e16 Mon Sep 17 00:00:00 2001 From: Wenbin Song Date: Tue, 13 Sep 2016 16:13:54 +0800 Subject: [PATCH] armv8/fsl-layerscape: print SoC revsion number The exact SoC revsion number can be recognized from U-Boot log. Signed-off-by: Wenbin Song Signed-off-by: Mingkai Hu Reviewed-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c index f865373df3..11e806ece0 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; } -- 2.39.5