]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: socfpga: remove re-added ad-hoc reset code
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Mon, 13 May 2019 19:16:43 +0000 (21:16 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 14 May 2019 17:52:38 +0000 (19:52 +0200)
commit c5de2b7eae68 ("arm: socfpga: implement proper peripheral reset")
has removed the call to 'reset_deassert_peripherals_handoff()' from
socfpga gen5 SPL since the reset driver now handles resets. However,
commit c1d4b464c8b8 ("ARM: socfpga: Disable bridges in SPL unless booting from FPGA")
has re-added this ad-hoc reset code, so that all peripherals were now
again enabled instead of letting the drivers enable them by request.

While at it, remove this function for gen5 as it should not be used.

Fixes: commit c1d4b464c8b8 ("ARM: socfpga: Disable bridges in SPL unless booting from FPGA")
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h
arch/arm/mach-socfpga/reset_manager_gen5.c
arch/arm/mach-socfpga/spl_gen5.c

index 5e490d182e39bcde20b5c1f5e600e4d0571d23dc..f4dcb14623070dc8f97b175fec3722d27e0fdf89 100644 (file)
@@ -8,7 +8,6 @@
 
 #include <dt-bindings/reset/altr,rst-mgr.h>
 
-void reset_deassert_peripherals_handoff(void);
 void socfpga_bridges_set_handoff_regs(bool h2f, bool lwh2f, bool f2h);
 void socfpga_bridges_reset(int enable);
 
index 89a384b59c84c085f3202e4dfc2004996999009e..9a32f5abfee8bed145868bf14a6c49e35b47e607 100644 (file)
@@ -61,14 +61,6 @@ void socfpga_per_reset_all(void)
        writel(0xffffffff, &reset_manager_base->per2_mod_reset);
 }
 
-/*
- * Release peripherals from reset based on handoff
- */
-void reset_deassert_peripherals_handoff(void)
-{
-       writel(0, &reset_manager_base->per_mod_reset);
-}
-
 #define L3REGS_REMAP_LWHPS2FPGA_MASK   0x10
 #define L3REGS_REMAP_HPS2FPGA_MASK     0x08
 #define L3REGS_REMAP_OCRAM_MASK                0x01
index bd2a9fe5aed644ea8290375b9aa4941213a7fb2a..1a60cdc89724676e26eb1b5742290ea030447f8f 100644 (file)
@@ -175,8 +175,7 @@ void board_init_f(ulong dummy)
        sysmgr_pinmux_init();
        sysmgr_config_warmrstcfgio(0);
 
-       /* De-assert reset for peripherals and bridges based on handoff */
-       reset_deassert_peripherals_handoff();
+       /* Set bridges handoff value */
        socfpga_bridges_set_handoff_regs(true, true, true);
 
        debug("Unfreezing/Thaw all I/O banks\n");