projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for the TQM8272 board from TQ
[oweals/u-boot.git]
/
cpu
/
mpc8260
/
cpu.c
diff --git
a/cpu/mpc8260/cpu.c
b/cpu/mpc8260/cpu.c
index 4f23012b729420ba74ce64dc4cb65d24cb73385e..94651dc4a69846731d2e8bae49645e5b2eb63c95 100644
(file)
--- a/
cpu/mpc8260/cpu.c
+++ b/
cpu/mpc8260/cpu.c
@@
-49,6
+49,10
@@
DECLARE_GLOBAL_DATA_PTR;
DECLARE_GLOBAL_DATA_PTR;
+#if defined(CONFIG_GET_CPU_STR_F)
+extern int get_cpu_str_f (char *buf);
+#endif
+
int checkcpu (void)
{
volatile immap_t *immap = (immap_t *) CFG_IMMR;
int checkcpu (void)
{
volatile immap_t *immap = (immap_t *) CFG_IMMR;
@@
-81,7
+85,12
@@
int checkcpu (void)
if ((immr & IMMR_ISB_MSK) != CFG_IMMR)
return -1; /* whoops! someone moved the IMMR */
if ((immr & IMMR_ISB_MSK) != CFG_IMMR)
return -1; /* whoops! someone moved the IMMR */
+#if defined(CONFIG_GET_CPU_STR_F)
+ get_cpu_str_f (buf);
+ printf ("%s (HiP%d Rev %02x, Mask ", buf, k, rev);
+#else
printf (CPU_ID_STR " (HiP%d Rev %02x, Mask ", k, rev);
printf (CPU_ID_STR " (HiP%d Rev %02x, Mask ", k, rev);
+#endif
/*
* the bottom 16 bits of the immr are the Part Number and Mask Number
/*
* the bottom 16 bits of the immr are the Part Number and Mask Number