Use BIT13 from BOOT_STRAP register for memory recognition
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 3 Jun 2014 22:45:06 +0000 (00:45 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Tue, 3 Jun 2014 22:45:06 +0000 (00:45 +0200)
u-boot/cpu/mips/ar7240/hornet_ddr_init.S

index 49009d888fe3bf4d445849654119fb91a20cf8c9..ef572809056d334907022d103962a4f9b299ec08 100755 (executable)
@@ -62,9 +62,9 @@ mem_type:
        // 0x180600AC (BOOT_STRAP, p. 81)
        li  t8, 0xB80600AC                      // load BOOT_STRAP reg address
        lw  t9, 0(t8)                           // and its value
-       li  t8, 0x1000                          // 0x1000 -> BIT12 is set
+       li  t8, 0x2000                          // 0x2000 -> BIT13 is set
        and t9, t9, t8
-       bne t9, zero, ddr1_config       // jump if we have DDR1
+       beq t9, zero, ddr1_config       // jump if we have DDR1
 
 ddr2_config:
        // Enable DDR2