From: Wolfgang Grandegger Date: Thu, 5 Jun 2008 11:12:04 +0000 (+0200) Subject: TQM85xx: Bugfix in the SDRAM initialisation X-Git-Tag: v1.3.4-rc1~110^2~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=518d5cfe72916323c746af1647764459914f555f;p=oweals%2Fu-boot.git TQM85xx: Bugfix in the SDRAM initialisation The CS0_BNDS register is now set according to the detected memory size. Signed-off-by Martin Krause --- diff --git a/board/tqc/tqm85xx/sdram.c b/board/tqc/tqm85xx/sdram.c index 413567ecb0..e005d844fe 100644 --- a/board/tqc/tqm85xx/sdram.c +++ b/board/tqc/tqm85xx/sdram.c @@ -104,8 +104,10 @@ long int sdram_setup (int casl) if (get_ram_size (0, ddr_cs_conf[i].size) == ddr_cs_conf[i].size) { /* - * OK, size detected -> all done + * size detected -> set Chip Select Bounds Register */ + ddr->cs0_bnds = (ddr_cs_conf[i].size - 1) >> 24; + return ddr_cs_conf[i].size; } }