> -----Original Message----- > From: Marek Vasut <[email protected]> > Sent: Thursday, November 21, 2019 5:35 AM > To: [email protected] > Cc: Marek Vasut <[email protected]>; See, Chin Liang > <[email protected]>; Dalon Westergreen <[email protected]>; > Dinh Nguyen <[email protected]>; Tan, Ley Foon > <[email protected]>; Simon Goldschmidt > <[email protected]>; Chee, Tien Fong > <[email protected]> > Subject: [PATCH 1/2] 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 <[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]> > --- > arch/arm/mach-socfpga/misc_gen5.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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); > } > } > -- > 2.24.0.432.g9d3f5f5b63 _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

