Skip to contentSkip to conversation

powerpc: Use lower case for the core names

PATCH Applied Fabio Estevam 2 participants 2 messages Apr 21, 2013 – Jun 21, 2013 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Use lower case for the core names

From: Fabio Estevam <[email protected]>

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 );

---
 arch/powerpc/cpu/mpc85xx/cpu.c |    8 ++++----
 arch/powerpc/cpu/mpc86xx/cpu.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
arch/powerpc/cpu/mpc85xx/cpu.c +4 -4
index df2ab6d..e88ee26 100644
@@ -121,16 +121,16 @@ int checkcpu (void)
 	switch(ver) {
 	case PVR_VER_E500_V1:
 	case PVR_VER_E500_V2:
-		puts("E500");
+		puts("e500");
 		break;
 	case PVR_VER_E500MC:
-		puts("E500MC");
+		puts("e500mc");
 		break;
 	case PVR_VER_E5500:
-		puts("E5500");
+		puts("e5500");
 		break;
 	case PVR_VER_E6500:
-		puts("E6500");
+		puts("e6500");
 		break;
 	default:
 		puts("Unknown");
arch/powerpc/cpu/mpc86xx/cpu.c +1 -1
index c553415..b8b1d8f 100644
@@ -78,7 +78,7 @@ checkcpu(void)
 	major = PVR_E600_MAJ(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)
 		puts("\n    Core1Translation Enabled");
 	debug(" (MSSCR0=%x, PORDEVSR=%x)", msscr0, gur->pordevsr);
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 14 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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:

(quoted diff) +1 -0
+	printf("e600 Core %d", (msscr0 & 0x20) ? 1 : 0 );
Quoted 2 lines

Applied, thanks!

Andy