From: Piotr Dymacz Date: Tue, 3 Jun 2014 22:45:06 +0000 (+0200) Subject: Use BIT13 from BOOT_STRAP register for memory recognition X-Git-Tag: 2014-11-19~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=37a8902138c1fc1e1c70b099caf0a7a0b5cbc574;p=oweals%2Fu-boot_mod.git Use BIT13 from BOOT_STRAP register for memory recognition --- diff --git a/u-boot/cpu/mips/ar7240/hornet_ddr_init.S b/u-boot/cpu/mips/ar7240/hornet_ddr_init.S index 49009d8..ef57280 100755 --- a/u-boot/cpu/mips/ar7240/hornet_ddr_init.S +++ b/u-boot/cpu/mips/ar7240/hornet_ddr_init.S @@ -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