From 37a8902138c1fc1e1c70b099caf0a7a0b5cbc574 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Wed, 4 Jun 2014 00:45:06 +0200 Subject: [PATCH] Use BIT13 from BOOT_STRAP register for memory recognition --- u-boot/cpu/mips/ar7240/hornet_ddr_init.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1