patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / cris / arch-v10 / lib / dram_init.S
index 4852709..2ef4ad5 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: dram_init.S,v 1.3 2003/03/31 09:38:37 starvik Exp $
+/* $Id: dram_init.S,v 1.4 2003/09/22 09:21:59 starvik Exp $
  * 
  * DRAM/SDRAM initialization - alter with care
  * This file is intended to be included from other assembler files
  * Authors:  Mikael Starvik (starvik@axis.com) 
  * 
  * $Log: dram_init.S,v $
+ * Revision 1.4  2003/09/22 09:21:59  starvik
+ * Decompresser is linked to 0x407xxxxx and sdram commands are at 0x000xxxxx
+ * so we need to mask off 12 bits.
+ *
  * Revision 1.3  2003/03/31 09:38:37  starvik
  * Corrected calculation of end of sdram init commands
  *
@@ -152,9 +156,9 @@ _set_timing:
        
        ; Issue initialization command sequence
        move.d   _sdram_commands_start, $r2
-       and.d    0x00ffffff, $r2 ; Make sure commands are read from flash
+       and.d    0x000fffff, $r2 ; Make sure commands are read from flash
        move.d   _sdram_commands_end,  $r3
-       and.d    0x00ffffff, $r3
+       and.d    0x000fffff, $r3
 1:     clear.d  $r4
        move.b   [$r2+], $r4
        lslq     9, $r4 ; Command starts at bit 9