[PATCH] Fix AMCC 44x SPD SDRAM init code to support 2 DIMM's
authorStefan Roese <sr@denx.de>
Wed, 7 Mar 2007 15:39:36 +0000 (16:39 +0100)
committerStefan Roese <sr@denx.de>
Wed, 7 Mar 2007 15:39:36 +0000 (16:39 +0100)
commite2ebe696818939e2b974628be9c921ea3fe9de13
treec7c7572314c55bd142774f3bf45ab7fdd01ee02e
parentfdd1d6dcc97c595bd9d598ed3b22a7038781272c
[PATCH] Fix AMCC 44x SPD SDRAM init code to support 2 DIMM's

This patch fixes a problem that occurs when 2 DIMM's are
used. This problem was first spotted and fixed by Gerald Jackson
<gerald.jackson@reaonixsecurity.com> but this patch fixes the
problem in a little more clever way.

This patch also adds the nice functionality to dynamically
create the TLB entries for the SDRAM (tlb.c). So we should
never run into such problems with wrong (too short) TLB
initialization again on these platforms.

As this feature is new to the "old" 44x SPD DDR driver, it
has to be enabled via the CONFIG_PROG_SDRAM_TLB define.

Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/44x_spd_ddr.c