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>
/* 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;