diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-09-11 21:35:36 +0400 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2008-09-24 09:58:33 -0500 |
commit | d26154c9a692586b66eb6d1f8e1b67c75e40ea70 (patch) | |
tree | 907998ee6fbf1b398b5db7596bb28941a540322f /board/matrix_vision | |
parent | 8fd4166c467a46773f80208bda1ec3b4757747bc (diff) | |
download | u-boot-imx-d26154c9a692586b66eb6d1f8e1b67c75e40ea70.zip u-boot-imx-d26154c9a692586b66eb6d1f8e1b67c75e40ea70.tar.gz u-boot-imx-d26154c9a692586b66eb6d1f8e1b67c75e40ea70.tar.bz2 |
mpc83xx: spd_sdram: fix ddr sdram base address assignment bug
The spd_dram code shifts the base address, then masks 20 bits, but
forgets to shift the base address back. Fix this by just masking the
base address correctly.
Found this bug while trying to relocate a DDR memory at the base != 0.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'board/matrix_vision')
-rw-r--r-- | board/matrix_vision/mvblm7/mvblm7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/matrix_vision/mvblm7/mvblm7.c b/board/matrix_vision/mvblm7/mvblm7.c index b07f913..3dcff67 100644 --- a/board/matrix_vision/mvblm7/mvblm7.c +++ b/board/matrix_vision/mvblm7/mvblm7.c @@ -50,7 +50,7 @@ int fixed_sdram(void) if (ddr_size & 1) return -1; } - im->sysconf.ddrlaw[0].bar = ((CFG_DDR_SDRAM_BASE>>12) & 0xfffff); + im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE & 0xfffff000; im->sysconf.ddrlaw[0].ar = LAWAR_EN | ((ddr_size_log2 - 1) & LAWAR_SIZE); |