]> git.sur5r.net Git - u-boot/commit
mpc83xx: spd_sdram.c: Disable memory controller before initializing
authorStefan Roese <sr@denx.de>
Tue, 8 Dec 2009 08:10:04 +0000 (09:10 +0100)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 8 Jan 2010 00:34:30 +0000 (18:34 -0600)
commit7693640acd5222f5a64e59ccf5e3bc511e8054b9
tree573d27601746fa3c6d0c5bdfd0f92857caef3255
parent2e95004deb6e33e33bf1b8a92a38cd2115bac4c2
mpc83xx: spd_sdram.c: Disable memory controller before initializing

The memory controller could already be enabled, when spd_sdram() is
called. This could be the case for example, when the SDRAM is initialized
by the JTAG debugger.

The "sync" after the register access via the accessor function is
still needed, because the macro uses the sync before the real write
is done. So until not all accesses are converted to using accessor
functions, this sync still needs to be made "manually" here.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Reinhard Arlt <reinhard.arlt@esd.eu>
Acked-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
cpu/mpc83xx/spd_sdram.c