* [U-Boot-Users] [PATCH] Use PVR to distinguish MPC5200B from MPC5200 in boot message
@ 2007-04-26 6:57 Bartlomiej Sieka
2007-04-27 14:23 ` Grant Likely
0 siblings, 1 reply; 2+ messages in thread
From: Bartlomiej Sieka @ 2007-04-26 6:57 UTC (permalink / raw)
To: u-boot
MPC5200B systems are incorrectly reported as MPC5200 in U-Boot start-up
message. Use PVR to distinguish between the two variants, and print proper CPU
information.
Signed-off-by: Grzegorz Wianecki <grzegorz.wianecki@gmail.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
---
diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c
index 813aa79..73b166d 100644
--- a/cpu/mpc5xxx/cpu.c
+++ b/cpu/mpc5xxx/cpu.c
@@ -53,12 +53,16 @@ int checkcpu (void)
#else
svr = get_svr();
pvr = get_pvr();
- switch (SVR_VER (svr)) {
- case SVR_MPC5200:
- printf ("MPC5200");
+
+ switch (pvr) {
+ case PVR_5200:
+ printf("MPC5200");
+ break;
+ case PVR_5200B:
+ printf("MPC5200B");
break;
default:
- printf ("MPC52?? (SVR %08x)", svr);
+ printf("Unknown MPC5xxx");
break;
}
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h
index 0585962..7c11c9e 100644
--- a/include/asm-ppc/processor.h
+++ b/include/asm-ppc/processor.h
@@ -701,8 +701,6 @@
#define SVR_MJREV(svr) (((svr) >> 4) & 0x0F) /* Major SOC design revision indicator */
#define SVR_MNREV(svr) (((svr) >> 0) & 0x0F) /* Minor SOC design revision indicator */
-/* System-On-Chip Version Numbers (version field only) */
-#define SVR_MPC5200 0x8011
/* Processor Version Register */
@@ -813,6 +811,12 @@
#define PVR_8260_HIP7R1 0x80822013
#define PVR_8260_HIP7RA 0x80822014
+/*
+ * MPC 52xx
+ */
+#define PVR_5200 0x80822011
+#define PVR_5200B 0x80822014
+
/*
* System Version Register
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot-Users] [PATCH] Use PVR to distinguish MPC5200B from MPC5200 in boot message
2007-04-26 6:57 [U-Boot-Users] [PATCH] Use PVR to distinguish MPC5200B from MPC5200 in boot message Bartlomiej Sieka
@ 2007-04-27 14:23 ` Grant Likely
0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2007-04-27 14:23 UTC (permalink / raw)
To: u-boot
On 4/26/07, Bartlomiej Sieka <tur@semihalf.com> wrote:
> MPC5200B systems are incorrectly reported as MPC5200 in U-Boot start-up
> message. Use PVR to distinguish between the two variants, and print proper CPU
> information.
>
> Signed-off-by: Grzegorz Wianecki <grzegorz.wianecki@gmail.com>
> Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Stefan, can you pick this up?
Thanks,
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-27 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 6:57 [U-Boot-Users] [PATCH] Use PVR to distinguish MPC5200B from MPC5200 in boot message Bartlomiej Sieka
2007-04-27 14:23 ` Grant Likely
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.