diff options
author | Zang Roy-R61911 <tie-fei.zang@freescale.com> | 2012-09-18 09:50:08 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2012-10-22 03:04:28 -0500 |
commit | 4e0be34a85b6bc9b8ae36feaf14440a347a2b22c (patch) | |
tree | c7d91147a56ed9ba977bbcecf6ecc775d9e6ecb5 /arch/powerpc/cpu/mpc85xx/cpu_init.c | |
parent | 9f26fd7947a92a30f4eb68d4d0f60c1a73ab4280 (diff) | |
download | u-boot-imx-4e0be34a85b6bc9b8ae36feaf14440a347a2b22c.zip u-boot-imx-4e0be34a85b6bc9b8ae36feaf14440a347a2b22c.tar.gz u-boot-imx-4e0be34a85b6bc9b8ae36feaf14440a347a2b22c.tar.bz2 |
P4080/esdhc: make the P4080 ESDHC13 errata workaround conditional
P4080 Rev3.0 fixes ESDHC13 errata, so update the code to make the
workaround conditional.
In formal release document, the errata number should be ESDHC13 instead
of ESDHC136.
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/cpu_init.c')
-rw-r--r-- | arch/powerpc/cpu/mpc85xx/cpu_init.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c index afb5671..ba558de 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c @@ -497,11 +497,13 @@ skip_l2: setup_mp(); #endif -#ifdef CONFIG_SYS_FSL_ERRATUM_ESDHC136 +#ifdef CONFIG_SYS_FSL_ERRATUM_ESDHC13 { - void *p; - p = (void *)CONFIG_SYS_DCSRBAR + 0x20520; - setbits_be32(p, 1 << (31 - 14)); + if (SVR_MAJ(svr) < 3) { + void *p; + p = (void *)CONFIG_SYS_DCSRBAR + 0x20520; + setbits_be32(p, 1 << (31 - 14)); + } } #endif |