[PPC32][update] Report chip version in /proc/cpuinfo for 85xx boards

Kumar Gala galak at freescale.com
Wed Feb 23 15:59:17 EST 2005


Andrew,

Here here is an updated version of the previous patch which fixes a 
build problem.  It is for post 2.6.11.

Report the chip version in /proc/cpuinfo on 85xx ADS and CDS platforms.

Signed-off-by: Kumar Gala <kumar.gala at freescale.com>

---

--- a/arch/ppc/platforms/85xx/mpc85xx_ads_common.c	2005-02-22 22:55:17 -06:00
+++ b/arch/ppc/platforms/85xx/mpc85xx_ads_common.c	2005-02-22 22:55:17 -06:00
@@ -43,6 +43,7 @@
 #include <asm/mpc85xx.h>
 #include <asm/irq.h>
 #include <asm/immap_85xx.h>
+#include <asm/ppc_sys.h>
 
 #include <mm/mmu_decl.h>
 
@@ -128,6 +129,7 @@
 	pvid = mfspr(PVR);
 	svid = mfspr(SVR);
 
+	seq_printf(m, "chip\t\t: %s\n", cur_ppc_sys_spec->ppc_sys_name);
 	seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n");
 
 	switch (svid & 0xffff0000) {
diff -Nru a/arch/ppc/platforms/85xx/mpc85xx_cds_common.c b/arch/ppc/platforms/85xx/mpc85xx_cds_common.c
--- a/arch/ppc/platforms/85xx/mpc85xx_cds_common.c	2005-02-22 13:22:09 -06:00
+++ b/arch/ppc/platforms/85xx/mpc85xx_cds_common.c	2005-02-22 13:22:09 -06:00
@@ -145,6 +145,7 @@
         pvid = mfspr(PVR);
         svid = mfspr(SVR);
 
+	seq_printf(m, "chip\t\t: %s\n", cur_ppc_sys_spec->ppc_sys_name);
         seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n");
 	seq_printf(m, "Machine\t\t: CDS (%x)\n", cadmus[CM_VER]);
 	seq_printf(m, "clock\t\t: %dMHz\n", freq / 1000000);



More information about the Linuxppc-embedded mailing list