提交 6770c5e2 编写于 作者: F Fabio Estevam 提交者: Andy Fleming

powerpc: Use lower case for the core names

Freescale documentation presents the PowerPC core names in lower case, such as
"e300", "e500", "e600", etc.

Change the upper case occurrences into lower case so that the core names
reported in U-boot can match the ones from the documentation.

While at it also fix a checkpatch error:

ERROR: space prohibited before that close parenthesis ')'
#53: FILE: arch/powerpc/cpu/mpc86xx/cpu.c:81:
+	printf("e600 Core %d", (msscr0 & 0x20) ? 1 : 0 );
Reported-by: NHeinz Wrobel <heinz.wrobel@freescale.com>
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: NAndy Fleming <afleming@freescale.com>
上级 061ffeda
...@@ -121,16 +121,16 @@ int checkcpu (void) ...@@ -121,16 +121,16 @@ int checkcpu (void)
switch(ver) { switch(ver) {
case PVR_VER_E500_V1: case PVR_VER_E500_V1:
case PVR_VER_E500_V2: case PVR_VER_E500_V2:
puts("E500"); puts("e500");
break; break;
case PVR_VER_E500MC: case PVR_VER_E500MC:
puts("E500MC"); puts("e500mc");
break; break;
case PVR_VER_E5500: case PVR_VER_E5500:
puts("E5500"); puts("e5500");
break; break;
case PVR_VER_E6500: case PVR_VER_E6500:
puts("E6500"); puts("e6500");
break; break;
default: default:
puts("Unknown"); puts("Unknown");
......
...@@ -78,7 +78,7 @@ checkcpu(void) ...@@ -78,7 +78,7 @@ checkcpu(void)
major = PVR_E600_MAJ(pvr); major = PVR_E600_MAJ(pvr);
minor = PVR_E600_MIN(pvr); minor = PVR_E600_MIN(pvr);
printf("E600 Core %d", (msscr0 & 0x20) ? 1 : 0 ); printf("e600 Core %d", (msscr0 & 0x20) ? 1 : 0);
if (gur->pordevsr & MPC86xx_PORDEVSR_CORE1TE) if (gur->pordevsr & MPC86xx_PORDEVSR_CORE1TE)
puts("\n Core1Translation Enabled"); puts("\n Core1Translation Enabled");
debug(" (MSSCR0=%x, PORDEVSR=%x)", msscr0, gur->pordevsr); debug(" (MSSCR0=%x, PORDEVSR=%x)", msscr0, gur->pordevsr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册