From: Kim Phillips Date: Thu, 15 Feb 2007 01:50:53 +0000 (-0600) Subject: mpc83xx: Disable G1TXCLK, G2TXCLK h/w buffers X-Git-Tag: v1.3.0-rc1~143^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3fc0bd159103b536e1c54c6f4457a09b3aba66ca;p=oweals%2Fu-boot.git mpc83xx: Disable G1TXCLK, G2TXCLK h/w buffers Disable G1TXCLK, G2TXCLK h/w buffers. This patch fixes a networking timeout issue with MPC8360EA (Rev.2) PBs. Verified on Rev. 1.1, Rev. 1.2, and Rev. 2.0 boards. Signed-off-by: Kim Phillips Signed-off-by: Emilian Medve --- diff --git a/board/mpc8360emds/mpc8360emds.c b/board/mpc8360emds/mpc8360emds.c index 54b9acc6e9..535884cb50 100644 --- a/board/mpc8360emds/mpc8360emds.c +++ b/board/mpc8360emds/mpc8360emds.c @@ -90,11 +90,18 @@ const qe_iop_conf_t qe_iop_conf_tab[] = { int board_early_init_f(void) { - volatile u8 *bcsr = (volatile u8 *)CFG_BCSR; + + u8 *bcsr = (u8 *)CFG_BCSR; + const immap_t *immr = (immap_t *)CFG_IMMR; /* Enable flash write */ bcsr[0xa] &= ~0x04; + /* Disable G1TXCLK, G2TXCLK h/w buffers (rev.2 h/w bug workaround) */ + if (immr->sysconf.spridr == SPR_8360_REV20 || + immr->sysconf.spridr == SPR_8360E_REV20) + bcsr[0xe] = 0x30; + return 0; }