[U-Boot-Users] [PATCH] TQM85xx: bugfix in the SDRAM Initialisation for the TQM85xx boards.

22 Jun
2007
22 Jun
'07
1:14 p.m.
The CS0_BNDS register is now set according to the detected memory size.
Signed-off-by Martin Krause martin.krause@tqs.de ---
board/tqm85xx/sdram.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/board/tqm85xx/sdram.c b/board/tqm85xx/sdram.c index 9c1f087..04e6784 100644 --- a/board/tqm85xx/sdram.c +++ b/board/tqm85xx/sdram.c @@ -106,8 +106,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; } }
6530
Age (days ago)
6530
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Krause