summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorGrzegorz Wianecki <grzegorz.wianecki@gmail.com>2007-04-29 14:01:54 +0200
committerStefan Roese <sr@denx.de>2007-04-29 14:01:54 +0200
commit864aa6a6a466fcb92bf32b1d7dba79cd709b52c9 (patch)
tree892c101ba0968012b15151975e94e2fb5e12df8b /cpu
parentada4d40091f6ed4a4f0040e08d20db21967e4a67 (diff)
downloadu-boot-imx-864aa6a6a466fcb92bf32b1d7dba79cd709b52c9.zip
u-boot-imx-864aa6a6a466fcb92bf32b1d7dba79cd709b52c9.tar.gz
u-boot-imx-864aa6a6a466fcb92bf32b1d7dba79cd709b52c9.tar.bz2
[PATCH] Use PVR to distinguish MPC5200B from MPC5200 in boot message
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>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc5xxx/cpu.c12
1 files changed, 8 insertions, 4 deletions
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;
}