From: Marek Vasut Date: Wed, 20 Nov 2019 21:34:30 +0000 (+0100) Subject: ARM: socfpga: Actually put bridges into reset on Gen5 in bridge disable X-Git-Tag: v2020.01-rc4~4^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=446cf811c58733c4b68149a0b83f4a258e1719ba;p=oweals%2Fu-boot.git ARM: socfpga: Actually put bridges into reset on Gen5 in bridge disable 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 Cc: Chin Liang See Cc: Dalon Westergreen Cc: Dinh Nguyen Cc: Ley Foon Tan Cc: Simon Goldschmidt Cc: Tien Fong Chee Reviewed-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- diff --git a/arch/arm/mach-socfpga/misc_gen5.c b/arch/arm/mach-socfpga/misc_gen5.c index 31681b799d..36f00aee31 100644 --- a/arch/arm/mach-socfpga/misc_gen5.c +++ b/arch/arm/mach-socfpga/misc_gen5.c @@ -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); } }