summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-01-13 02:58:23 -0600
committerKumar Gala <galak@kernel.crashing.org>2011-01-14 01:32:22 -0600
commitf133796da8ec87ccbafc9c492636def619d99401 (patch)
treedfe191877ff5f37f22a28496b911f6fd8863c3ef /arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
parent868da5936e40b8685c813c1eb31eed629eaae295 (diff)
downloadtalos-obmc-uboot-f133796da8ec87ccbafc9c492636def619d99401.tar.gz
talos-obmc-uboot-f133796da8ec87ccbafc9c492636def619d99401.zip
powerpc/85xx: Add the workaround for erratum ELBC-A001 (enable on P4080)
Simultaneous FCM and GPCM or UPM operation may erroneously trigger bus monitor timeout. Set timeout to maximum to avoid. Based on a patch from Lan Chunhe <b25806@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx/fsl_lbc.c')
-rw-r--r--arch/powerpc/cpu/mpc8xxx/fsl_lbc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
index 6f401e7509..7598ebf457 100644
--- a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
+++ b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2010 Freescale Semiconductor, Inc.
+ * Copyright 2010-2011 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -34,6 +34,11 @@ void init_early_memctl_regs(void)
{
uint init_br1 = 1;
+#ifdef CONFIG_SYS_FSL_ERRATUM_ELBC_A001
+ /* Set the local bus monitor timeout value to the maximum */
+ clrsetbits_be32(&(LBC_BASE_ADDR)->lbcr, LBCR_BMT|LBCR_BMTPS, 0xf);
+#endif
+
#ifdef CONFIG_MPC85xx
/* if cs1 is already set via debugger, leave cs0/cs1 alone */
if (get_lbc_br(1) & BR_V)
OpenPOWER on IntegriCloud