]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: socfpga: spl: Toggle warm reset config I/O bit
authorMarek Vasut <marex@denx.de>
Thu, 9 Jul 2015 02:48:56 +0000 (04:48 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:21 +0000 (08:17 +0200)
Synchronise the SPL behavior with the original Altera code and
toggle the Warm Reset Config I/O bit accordingly.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-socfpga/spl.c

index fd54ea979d78176a685517ddff69148d46695cfc..834597584b3bcf229cbaf4b686affd9a758d2bd4 100644 (file)
@@ -84,8 +84,13 @@ void spl_board_init(void)
        if (scan_mgr_configure_iocsr())
                hang();
 
+       sysmgr_config_warmrstcfgio(0);
+
        /* configure the pin muxing through system manager */
+       sysmgr_config_warmrstcfgio(1);
        sysmgr_pinmux_init();
+       sysmgr_config_warmrstcfgio(0);
+
 #endif /* CONFIG_SOCFPGA_VIRTUAL_TARGET */
 
        /* de-assert reset for peripherals and bridges based on handoff */