[U-Boot] [PATCH] armv8/fsl-layerscape: print SoC revsion number
Wenbin song
wenbin.song at nxp.com
Fri Sep 9 10:11:22 CEST 2016
The exact SoC revsion number can be recognized from U-Boot log.
Signed-off-by: Wenbin Song <wenbin.song at nxp.com>
Signed-off-by: Mingkai Hu <mingkai.hu at nxp.com>
---
arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
index 340d9f9..5cada6d 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -40,6 +40,8 @@ void cpu_name(char *name)
for (i = 0; i < ARRAY_SIZE(cpu_type_list); i++)
if ((cpu_type_list[i].soc_ver & SVR_WO_E) == ver) {
strcpy(name, cpu_type_list[i].name);
+ sprintf(name + strlen(name), " Rev%d.%d\n",
+ SVR_MAJ(svr), SVR_MIN(svr));
if (IS_E_PROCESSOR(svr))
strcat(name, "E");
--
2.1.0.27.g96db324
More information about the U-Boot
mailing list