summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-04-16 14:34:16 -0500
committerKim Phillips <kim.phillips@freescale.com>2007-04-23 16:31:59 -0500
commit95e7ef897e54591e615fc1b458b74c286fe1fb06 (patch)
tree80745edf1ca4c5412ada5040322f85c5d1fa2806 /cpu
parenta35b0c4950d84cf9e3a9e32b916135956d1ac636 (diff)
downloadu-boot-imx-95e7ef897e54591e615fc1b458b74c286fe1fb06.zip
u-boot-imx-95e7ef897e54591e615fc1b458b74c286fe1fb06.tar.gz
u-boot-imx-95e7ef897e54591e615fc1b458b74c286fe1fb06.tar.bz2
mpc83xx: Change PVR_83xx to PVR_E300C1-3, and update checkcpu().
Rather than misleadingly define PVR_83xx as the specific type of 83xx being built for, the PVR of each core revision is defined. checkcpu() now prints the core that it detects, rather than aborting if it doesn't find what it thinks it wants. Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc83xx/cpu.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c
index d569c49..332afaa 100644
--- a/cpu/mpc83xx/cpu.c
+++ b/cpu/mpc83xx/cpu.c
@@ -52,13 +52,26 @@ int checkcpu(void)
immr = (immap_t *)CFG_IMMR;
- if ((pvr & 0xFFFF0000) != PVR_83xx) {
- puts("Not MPC83xx Family!!!\n");
- return -1;
+ puts("CPU: ");
+
+ switch (pvr & 0xffff0000) {
+ case PVR_E300C1:
+ printf("e300c1, ");
+ break;
+
+ case PVR_E300C2:
+ printf("e300c2, ");
+ break;
+
+ case PVR_E300C3:
+ printf("e300c3, ");
+ break;
+
+ default:
+ printf("Unknown core, ");
}
spridr = immr->sysconf.spridr;
- puts("CPU: ");
switch(spridr) {
case SPR_8349E_REV10:
case SPR_8349E_REV11: