powerpc/b4860qds: add workaround for XFI
authorShaohui Xie <Shaohui.Xie@freescale.com>
Thu, 13 Nov 2014 03:27:49 +0000 (11:27 +0800)
committerYork Sun <yorksun@freescale.com>
Fri, 5 Dec 2014 16:06:13 +0000 (08:06 -0800)
commitb24f6d401c3270370b9c147cb9decf95dc6804d3
tree0836d857c8714b1300261e8be5e99ff4c66147d9
parentcd79e5f41402f1e717b988d3368c033660ead821
powerpc/b4860qds: add workaround for XFI

XFI does not work stable on current board, it's due to heat sink issue,
to make it work stable the board needs additional heat sink, enable two
XFI lanes only. Right now we do not have such an erratum for the issue,
so use a define CONFIG_SYS_FSL_B4860QDS_XFI_ERR to identify it.
The workaround will only be used in XFI protocols and only if the
hwconfig indicates that XFI is prefered.

A new VSC3308 config function is used instead of re-use the original
function, to avoid making the function complex and ugly.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/powerpc/cpu/mpc85xx/cmd_errata.c
board/freescale/b4860qds/b4860qds.c
board/freescale/common/vsc3316_3308.c
board/freescale/common/vsc3316_3308.h
include/configs/B4860QDS.h