powerpc/mpc85xx:Fix Core cluster configuration loop
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Sun, 23 Dec 2012 19:25:18 +0000 (19:25 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 30 Jan 2013 17:25:10 +0000 (11:25 -0600)
commitdb9a807054ec82f4f6352677ea8b5d8176050a8a
tree3c1442cf93373198a279814ff37c0971191c5915
parent2ae4e8d9587a3ca9a642ff634c070f66235b571d
powerpc/mpc85xx:Fix Core cluster configuration loop

Different personalities/derivatives of SoC may have reduced cluster. But it is
not necessary for last valid DCFG_CCSR_TP_CLUSTER register to have
DCFG_CCSR_TP_CLUSTER[EOC] bit set to represent "End of Clusters".

EOC bit can still be set in last DCFG_CCSR_TP_CLUSTER register of orignal SoC
which may not be valid for the personality.
So add initiator type check to find valid cluster.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc85xx/cpu_init.c