* [PPC32][update] Report chip version in /proc/cpuinfo for 85xx boards
@ 2005-02-23 4:59 Kumar Gala
2005-02-23 18:58 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2005-02-23 4:59 UTC (permalink / raw)
To: akpm; +Cc: linuxppc-embedded
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@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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-23 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23 4:59 [PPC32][update] Report chip version in /proc/cpuinfo for 85xx boards Kumar Gala
2005-02-23 18:58 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox