]> git.sur5r.net Git - u-boot/commitdiff
powerpc/85xx: Add the workaround for erratum CPC-A003 (enable on P4080)
authorKumar Gala <galak@kernel.crashing.org>
Thu, 13 Jan 2011 07:56:18 +0000 (01:56 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 14 Jan 2011 07:32:22 +0000 (01:32 -0600)
CoreNet Platform Cache single-bit data error scrubbing will cause data
corruption.  Disable the feature to workaround the issue.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/cmd_errata.c
arch/powerpc/cpu/mpc85xx/cpu_init.c
arch/powerpc/include/asm/immap_85xx.h
include/configs/P4080DS.h

index ae6af4f96746f51e4881fbbebd021527ee559a88..bf70d2d895caed8ac0ec40ff36888852541db251 100644 (file)
@@ -62,6 +62,9 @@ static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A002
        puts("Work-around for Erratum CPC-A002 enabled\n");
 #endif
+#ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A003
+       puts("Work-around for Erratum CPC-A003 enabled\n");
+#endif
 
        return 0;
 }
index c822d871aec157e13b3a9331c0cdec8320249461..8ece970097246c2fe1b102935ad78b439fe7ce3a 100644 (file)
@@ -145,6 +145,9 @@ static void enable_cpc(void)
 #ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A002
                setbits_be32(&cpc->cpchdbcr0, CPC_HDBCR0_TAG_ECC_SCRUB_DIS);
 #endif
+#ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A003
+               setbits_be32(&cpc->cpchdbcr0, CPC_HDBCR0_DATA_ECC_SCRUB_DIS);
+#endif
 
                out_be32(&cpc->cpccsr0, CPC_CSR0_CE | CPC_CSR0_PE);
                /* Read back to sync write */
index 6b19ee858632b107d10225fe35872c55d8c6566f..b96dec7cef40d46dab8cdffc9ce9141110239225 100644 (file)
@@ -1620,6 +1620,7 @@ typedef struct cpc_corenet {
 #define        CPC_ERRDIS_TMHITDIS     0x00000080      /* multi-way hit disable */
 #define CPC_HDBCR0_CDQ_SPEC_DIS        0x08000000
 #define CPC_HDBCR0_TAG_ECC_SCRUB_DIS   0x01000000
+#define CPC_HDBCR0_DATA_ECC_SCRUB_DIS  0x00400000
 #endif /* CONFIG_SYS_FSL_CPC */
 
 /* Global Utilities Block */
index 950c8bcaf609ff0d68363ebddfabbfcc119fdea8..c8f542eabe8f0ad6a078d456d401904b9c881b06 100644 (file)
@@ -41,6 +41,7 @@
 
 #define CONFIG_SYS_P4080_ERRATUM_CPU22
 #define CONFIG_SYS_FSL_ERRATUM_CPC_A002
+#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
 #define CONFIG_SYS_P4080_ERRATUM_SERDES8
 
 #include "corenet_ds.h"