]> git.dujemihanovic.xyz Git - u-boot.git/commit
ppc4xx: Remove superfluous dram_init() call or replace it by initdram()
authorStefan Roese <sr@denx.de>
Mon, 2 Jun 2008 15:37:28 +0000 (17:37 +0200)
committerStefan Roese <sr@denx.de>
Tue, 3 Jun 2008 18:22:19 +0000 (20:22 +0200)
commitbbeff30cbd1c5d551eb0ad1c2239ec01844c0b0a
tree48f48eadf87f5bc67d2673b7f1ba58a77e882dc2
parent192f90e272b3989ee7b4a666d1fdab831f20f8d2
ppc4xx: Remove superfluous dram_init() call or replace it by initdram()

Historically the 405 U-Boot port had a dram_init() call in early init
stage. This function was still called from start.S and most of the time
coded in assembler. This is not needed anymore (since a long time) and
boards should implement the common initdram() function in C instead.

This patch now removed the dram_init() call from start.S and removes the
empty implementations that are scattered through most of the 405 board
ports. Some older board ports really implement this dram_init() though.
These are:

csb272
csb472
ERIC
EXBITGEN
W7OLMC
W7OLMG

I changed those boards to call this assembler dram_init() function now
from their board specific initdram() instead. This *should* work, but please
test again on those platforms. And it is perhaps a good idea that those
boards use some common 405 SDRAM initialization code from cpu/ppc4xx at
some time. So further patches welcome here.

Signed-off-by: Stefan Roese <sr@denx.de>
25 files changed:
board/amcc/acadia/memory.c
board/amcc/bubinga/bubinga.c
board/amcc/makalu/makalu.c
board/amcc/walnut/walnut.c
board/amcc/yosemite/yosemite.c
board/amirix/ap1000/init.S
board/cray/L1/init.S
board/csb272/csb272.c
board/csb472/csb472.c
board/eric/eric.c
board/esd/ar405/ar405.c
board/esd/canbt/canbt.c
board/exbitgen/exbitgen.c
board/g2000/g2000.c
board/jse/init.S
board/ml2/init.S
board/mpl/mip405/init.S
board/mpl/pip405/init.S
board/netstal/hcu4/hcu4.c
board/netstal/hcu5/sdram.c
board/netstal/mcu25/mcu25.c
board/w7o/w7o.c
board/xilinx/ml300/init.S
cpu/ppc4xx/sdram.c
cpu/ppc4xx/start.S