From: Timur Tabi Date: Mon, 25 Mar 2013 07:30:08 +0000 (+0000) Subject: powerpc/85xx: add SerDes bank 4 lanes X-Git-Tag: v2013.07-rc1~18^2~4^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca9131c0569a98b6538c5a2d78c3d845bdf54bae;p=u-boot powerpc/85xx: add SerDes bank 4 lanes Only some chips have four SerDes banks, so don't define lanes for a bank that doesn't exist. Signed-off-by: Timur Tabi Signed-off-by: Andy Fleming --- diff --git a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c index 825a29238d..b621adf4af 100644 --- a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c +++ b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c @@ -103,6 +103,10 @@ static const struct { { 22, 168, FSL_SRDS_BANK_3 }, { 23, 169, FSL_SRDS_BANK_3 }, #endif +#if SRDS_MAX_BANK > 3 + { 24, 175, FSL_SRDS_BANK_4 }, + { 25, 176, FSL_SRDS_BANK_4 }, +#endif }; int serdes_get_lane_idx(int lane)