]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: mt76xx: lowlevel_init.S: Add missing memory controller reset in DDR init
authorStefan Roese <sr@denx.de>
Tue, 9 Oct 2018 06:59:04 +0000 (08:59 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 18 Nov 2018 15:02:22 +0000 (16:02 +0100)
This fixes an issue which has been noticed on the Gardena board, with
the watchdog enabled, where the watdchdog reset (after a system hang)
did result in reporting of 2.9 GiB and a hang after this. With this
patch applied the memory controller is correctly reset and initialized
again even after a watchdog reset.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/mach-mt7620/lowlevel_init.S

index 1a50f160fe0fd385692ceebfd80adfea2df0ba03..aa707e0de6c409115be32b46e278813f33c7e7a0 100644 (file)
@@ -108,6 +108,12 @@ CPLL_READY:
        sw      t3, 0(t0)
 
 CPLL_DONE:
+       /* Reset MC */
+       lw      t2, 0x34(s0)
+       ori     t2, BIT(10)
+       sw      t2, 0x34(s0)
+       nop
+
        /*
         * SDR and DDR initialization: delay 200us
         */