The CS0_BNDS register is now set according to the detected
memory size.
Signed-off-by Martin Krause <[EMAIL PROTECTED]>
---
board/tqc/tqm85xx/sdram.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/board/tqc/tqm85xx/sdram.c b/board/tqc/tqm85xx/sdram.c
index 413567e..e005d84 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;
}
}
--
1.5.2.2
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users