]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
TQM85xx: Bugfix in the SDRAM initialisation
authorWolfgang Grandegger <wg@grandegger.com>
Thu, 5 Jun 2008 11:12:04 +0000 (13:12 +0200)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Wed, 11 Jun 2008 04:58:58 +0000 (23:58 -0500)
The CS0_BNDS register is now set according to the detected
memory size.

Signed-off-by Martin Krause <martin.krause@tqs.de>

board/tqc/tqm85xx/sdram.c

index 413567ecb0dec984aa6f767f8400daaa9509c569..e005d844fe659360f758fac20bff3216cdfb3d10 100644 (file)
@@ -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;
                }
        }