summaryrefslogtreecommitdiff
path: root/cpu/mpc85xx/mp.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-04-09 04:20:57 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-04-11 17:32:56 -0500
commit97b3ecb575a92fa34c1765229dbc06f2b662f139 (patch)
tree67241b220324e5725f1ac6b1b3a86688008ce9f2 /cpu/mpc85xx/mp.c
parentf3e04bdc3f360c66801a9048956e61e41a16edba (diff)
downloadu-boot-imx-97b3ecb575a92fa34c1765229dbc06f2b662f139.zip
u-boot-imx-97b3ecb575a92fa34c1765229dbc06f2b662f139.tar.gz
u-boot-imx-97b3ecb575a92fa34c1765229dbc06f2b662f139.tar.bz2
85xx: Fix detection of MP cpu spin up
We were looking at the wrong memory offset to determine of a secondary cpu had been spun up or not. Also added a warning message if the all the secondary cpus we expect don't spin up. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'cpu/mpc85xx/mp.c')
-rw-r--r--cpu/mpc85xx/mp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpu/mpc85xx/mp.c b/cpu/mpc85xx/mp.c
index 7b10fba..e733f7b 100644
--- a/cpu/mpc85xx/mp.c
+++ b/cpu/mpc85xx/mp.c
@@ -154,7 +154,7 @@ static void pq3_mp_up(unsigned long bootpg)
while (timeout) {
int i;
for (i = 1; i < CONFIG_NR_CPUS; i++) {
- if (table[i * NUM_BOOT_ENTRY])
+ if (table[i * NUM_BOOT_ENTRY + BOOT_ENTRY_ADDR_LOWER])
cpu_up_mask |= (1 << i);
};
@@ -165,6 +165,10 @@ static void pq3_mp_up(unsigned long bootpg)
timeout--;
}
+ if (timeout == 0)
+ printf("CPU up timeout. CPU up mask is %x should be %x\n",
+ cpu_up_mask, up);
+
/* enable time base at the platform */
if (whoami)
devdisr |= MPC85xx_DEVDISR_TB1;