mpc83xx: spd_sdram: fix ddr sdram base address assignment bug
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 11 Sep 2008 17:35:36 +0000 (21:35 +0400)
committerKim Phillips <kim.phillips@freescale.com>
Wed, 24 Sep 2008 14:58:33 +0000 (09:58 -0500)
commitd26154c9a692586b66eb6d1f8e1b67c75e40ea70
tree907998ee6fbf1b398b5db7596bb28941a540322f
parent8fd4166c467a46773f80208bda1ec3b4757747bc
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>
board/freescale/mpc8313erdb/sdram.c
board/freescale/mpc8315erdb/sdram.c
board/freescale/mpc8349emds/mpc8349emds.c
board/freescale/mpc8349itx/mpc8349itx.c
board/freescale/mpc837xemds/mpc837xemds.c
board/freescale/mpc837xerdb/mpc837xerdb.c
board/matrix_vision/mvblm7/mvblm7.c
board/sbc8349/sbc8349.c
cpu/mpc83xx/spd_sdram.c