]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: Clear reboot status register 0x0F000000 bits
authorMichal Simek <monstr@monstr.eu>
Tue, 25 Sep 2012 08:43:12 +0000 (10:43 +0200)
committerMichal Simek <monstr@monstr.eu>
Fri, 5 Oct 2012 13:07:14 +0000 (15:07 +0200)
FSBL check the reboot status register 0x0F000000 bits to decide
which the partition it should work on. If the bitstream is presented in
the partition, it programs the bistream.

This commit is a temporary workaround to reload the bitstream after
uboot reset.

Signed-off-by: Jason Wu <jason.wu@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
board/xilinx/zynq_common/board.c

index 54a109a8e7549b1ba9dd0eafb8f0712b13439abd..ad8f0592299946562033a45223efd61658c18492 100644 (file)
@@ -157,6 +157,11 @@ void reset_cpu(ulong addr)
 
        /* unlock SLCR */
        *(slcr_p + 2) = 0xDF0D;
+       /* Clear 0x0F000000 bits of reboot status register to workaround
+        * the FSBL not loading the bitstream after soft reset
+        * This is a temporary solution until we know more.
+        */
+       XIo_Out32(XPSS_SYS_CTRL_BASEADDR + 0x258, (XIo_In32(XPSS_SYS_CTRL_BASEADDR + 0x258) & 0xF0FFFFFF));
        /* Tickle soft reset bit */
        *(slcr_p + 128) = 1;