diff options
author | Heiko Schocher <hs@denx.de> | 2014-10-31 08:30:57 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-17 08:47:16 -0500 |
commit | 341f548ee9f95150e64ed114361cfd5b0088f6ff (patch) | |
tree | 856a5ef9a24627f3e46901d478fe9e57306a6085 /arch | |
parent | 50921cdc4474dafdcf19db54d7a669781ee5b70f (diff) | |
download | u-boot-imx-341f548ee9f95150e64ed114361cfd5b0088f6ff.zip u-boot-imx-341f548ee9f95150e64ed114361cfd5b0088f6ff.tar.gz u-boot-imx-341f548ee9f95150e64ed114361cfd5b0088f6ff.tar.bz2 |
arm, at91, mpddrc: fix typo in ddr2_init()
use the configure value for computing the ba_off value
not the value from the cr register. This leaded in a
wrong ram configuration on the upcoming corvus spl board
support.
Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/at91-common/mpddrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/at91-common/mpddrc.c b/arch/arm/cpu/at91-common/mpddrc.c index 8136396..f78e4be 100644 --- a/arch/arm/cpu/at91-common/mpddrc.c +++ b/arch/arm/cpu/at91-common/mpddrc.c @@ -26,7 +26,7 @@ int ddr2_init(const unsigned int ram_address, /* Compute bank offset according to NC in configuration register */ ba_off = (mpddr_value->cr & ATMEL_MPDDRC_CR_NC_MASK) + 9; if (!(mpddr_value->cr & ATMEL_MPDDRC_CR_DECOD_INTERLEAVED)) - ba_off += ((mpddr->cr & ATMEL_MPDDRC_CR_NR_MASK) >> 2) + 11; + ba_off += ((mpddr_value->cr & ATMEL_MPDDRC_CR_NR_MASK) >> 2) + 11; ba_off += (mpddr_value->md & ATMEL_MPDDRC_MD_DBW_MASK) ? 1 : 2; |