diff options
author | Ed Swarthout <Ed.Swarthout@freescale.com> | 2008-10-08 23:37:59 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:05 +0200 |
commit | 6856b3d0221a838580e6bb06f61425fd7529ba93 (patch) | |
tree | e4f0033d003d798e136cb30e2fb2dcfd46d0a840 /cpu/mpc85xx/cpu.c | |
parent | f7fecc3e25050a036c9f50f0d2b85bc3199a96e0 (diff) | |
download | u-boot-imx-6856b3d0221a838580e6bb06f61425fd7529ba93.zip u-boot-imx-6856b3d0221a838580e6bb06f61425fd7529ba93.tar.gz u-boot-imx-6856b3d0221a838580e6bb06f61425fd7529ba93.tar.bz2 |
85xx if NUM_CPUS>1, print cpu number
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Diffstat (limited to 'cpu/mpc85xx/cpu.c')
-rw-r--r-- | cpu/mpc85xx/cpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c index 61162a8..9c4f214 100644 --- a/cpu/mpc85xx/cpu.c +++ b/cpu/mpc85xx/cpu.c @@ -99,7 +99,12 @@ int checkcpu (void) #endif minor = SVR_MIN(svr); +#if (CONFIG_NUM_CPUS > 1) + volatile ccsr_pic_t *pic = (void *)(CONFIG_SYS_MPC85xx_PIC_ADDR); + printf("CPU%d: ", pic->whoami); +#else puts("CPU: "); +#endif cpu = identify_cpu(ver); if (cpu) { |