Commit 8d62a3ff authored by Kumar Gala's avatar Kumar Gala Committed by Linus Torvalds

[PATCH] ppc32: updated reporting of CPU rev & freq for e500 CPUs

Fixes up the reporting of the e500 core revision.  Additionally, it changes
the reporting of CPU frequency to match what other PPC systems do.
Signed-off-by: default avatarKumar Gala <kumar.gala@freescale.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b0308b2a
...@@ -226,6 +226,10 @@ int show_cpuinfo(struct seq_file *m, void *v) ...@@ -226,6 +226,10 @@ int show_cpuinfo(struct seq_file *m, void *v)
maj = ((pvr >> 8) & 0xFF) - 1; maj = ((pvr >> 8) & 0xFF) - 1;
min = pvr & 0xFF; min = pvr & 0xFF;
break; break;
case 0x8020: /* e500 */
maj = PVR_MAJ(pvr);
min = PVR_MIN(pvr);
break;
default: default:
maj = (pvr >> 8) & 0xFF; maj = (pvr >> 8) & 0xFF;
min = pvr & 0xFF; min = pvr & 0xFF;
......
...@@ -142,8 +142,7 @@ mpc85xx_ads_show_cpuinfo(struct seq_file *m) ...@@ -142,8 +142,7 @@ mpc85xx_ads_show_cpuinfo(struct seq_file *m)
seq_printf(m, "Machine\t\t: unknown\n"); seq_printf(m, "Machine\t\t: unknown\n");
break; break;
} }
seq_printf(m, "bus freq\t: %u.%.6u MHz\n", freq / 1000000, seq_printf(m, "clock\t\t: %dMHz\n", freq / 1000000);
freq % 1000000);
seq_printf(m, "PVR\t\t: 0x%x\n", pvid); seq_printf(m, "PVR\t\t: 0x%x\n", pvid);
seq_printf(m, "SVR\t\t: 0x%x\n", svid); seq_printf(m, "SVR\t\t: 0x%x\n", svid);
......
...@@ -172,8 +172,7 @@ mpc85xx_cds_show_cpuinfo(struct seq_file *m) ...@@ -172,8 +172,7 @@ mpc85xx_cds_show_cpuinfo(struct seq_file *m)
seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n"); seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n");
seq_printf(m, "Machine\t\t: CDS (%x)\n", cadmus[CM_VER]); seq_printf(m, "Machine\t\t: CDS (%x)\n", cadmus[CM_VER]);
seq_printf(m, "bus freq\t: %u.%.6u MHz\n", freq / 1000000, seq_printf(m, "clock\t\t: %dMHz\n", freq / 1000000);
freq % 1000000);
seq_printf(m, "PVR\t\t: 0x%x\n", pvid); seq_printf(m, "PVR\t\t: 0x%x\n", pvid);
seq_printf(m, "SVR\t\t: 0x%x\n", svid); seq_printf(m, "SVR\t\t: 0x%x\n", svid);
......
...@@ -142,8 +142,7 @@ sbc8560_show_cpuinfo(struct seq_file *m) ...@@ -142,8 +142,7 @@ sbc8560_show_cpuinfo(struct seq_file *m)
seq_printf(m, "Machine\t\t: unknown\n"); seq_printf(m, "Machine\t\t: unknown\n");
break; break;
} }
seq_printf(m, "bus freq\t: %u.%.6u MHz\n", freq / 1000000, seq_printf(m, "clock\t\t: %dMHz\n", freq / 1000000);
freq % 1000000);
seq_printf(m, "PVR\t\t: 0x%x\n", pvid); seq_printf(m, "PVR\t\t: 0x%x\n", pvid);
seq_printf(m, "SVR\t\t: 0x%x\n", svid); seq_printf(m, "SVR\t\t: 0x%x\n", svid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment