armv8/fsl-layerscape: print SoC revsion number
authorWenbin Song <wenbin.song@nxp.com>
Tue, 13 Sep 2016 08:13:54 +0000 (16:13 +0800)
committerYork Sun <york.sun@nxp.com>
Thu, 6 Oct 2016 16:56:44 +0000 (09:56 -0700)
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>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c

index f865373df39a928e327d6bbe22bec7e7afff2e04..11e806ece01ffd2a6f2633c0eefa114b4c8fc9c3 100644 (file)
@@ -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;
                }