* [U-Boot-Users] [PATCH] mpc83xx: Disable G1TXCLK, G2TXCLK h/w buffers
@ 2007-02-15 16:48 Kim Phillips
0 siblings, 0 replies; only message in thread
From: Kim Phillips @ 2007-02-15 16:48 UTC (permalink / raw)
To: u-boot
Disable G1TXCLK, G2TXCLK h/w buffers. This patch
fixes a networking timeout issue with MPC8360EA (Rev.2) PBs.
Verified does not break MPC8360 MDS Rev. 1.1, Rev. 1.2 boards.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Emilian Medve <Emilian.Medve@freescale.com>
---
board/mpc8360emds/mpc8360emds.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/board/mpc8360emds/mpc8360emds.c b/board/mpc8360emds/mpc8360emds.c
index 54b9acc..535884c 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;
}
--
1.4.2.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-15 16:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 16:48 [U-Boot-Users] [PATCH] mpc83xx: Disable G1TXCLK, G2TXCLK h/w buffers Kim Phillips
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.