powerpc/85xx: Rework MPC8536 SERDES is_serdes_configured support
authorKumar Gala <galak@kernel.crashing.org>
Sat, 22 May 2010 18:21:39 +0000 (13:21 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 21 Jul 2010 05:40:16 +0000 (00:40 -0500)
commitaf0250652a775799da656f74719bdefb45fda7d5
tree337b48483a5983e2cfef667ae5063f6da1f165e0
parentc26de2d8b15c15fdc0a33758fa7714667eec404c
powerpc/85xx: Rework MPC8536 SERDES is_serdes_configured support

Move serdes init until after we are in ram so we can keep track of a
global static protocal map for the particular serdes config we are in.
This makes is_serdes_configured() much simplier and not constantly
reading registers to determine if a given device is enabled based on the
protocol.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/cpu_init.c
arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
arch/powerpc/include/asm/fsl_serdes.h
include/configs/MPC8536DS.h