]> Git Repo - u-boot.git/commitdiff
ARM: socfpga: Actually put bridges into reset on Gen5 in bridge disable
authorMarek Vasut <[email protected]>
Wed, 20 Nov 2019 21:34:30 +0000 (22:34 +0100)
committerMarek Vasut <[email protected]>
Mon, 25 Nov 2019 12:12:55 +0000 (13:12 +0100)
On Gen5, the 'bridge disable' command write 0x0 to brgmodrst register,
which releases all bridges from reset, instead of putting all bridges
into reset. Fix this by inverting the mask and actually putting the
bridges into reset.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Chin Liang See <[email protected]>
Cc: Dalon Westergreen <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Ley Foon Tan <[email protected]>
Cc: Simon Goldschmidt <[email protected]>
Cc: Tien Fong Chee <[email protected]>
Reviewed-by: Ley Foon Tan <[email protected]>
Reviewed-by: Simon Goldschmidt <[email protected]>
arch/arm/mach-socfpga/misc_gen5.c

index 31681b799d4624b244d6147dc0017e8703bfac16..36f00aee31a970430f967eae49f7f6ca15be767f 100644 (file)
@@ -231,7 +231,7 @@ void do_bridge_reset(int enable, unsigned int mask)
        } else {
                writel(0, &sysmgr_regs->fpgaintfgrp_module);
                writel(0, &sdr_ctrl->fpgaport_rst);
-               writel(0, &reset_manager_base->brg_mod_reset);
+               writel(0x7, &reset_manager_base->brg_mod_reset);
                writel(1, &nic301_regs->remap);
        }
 }
This page took 0.029089 seconds and 4 git commands to generate.