ARM: socfpga: Actually put bridges into reset on Gen5 in bridge disable
authorMarek Vasut <marex@denx.de>
Wed, 20 Nov 2019 21:34:30 +0000 (22:34 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 25 Nov 2019 12:12:55 +0000 (13:12 +0100)
commit446cf811c58733c4b68149a0b83f4a258e1719ba
treef7f80304d0b8cf9567c399231f0278d07c457872
parent9a0cbae22a613dfd55e15565785749b74c19fdf0
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 <marex@denx.de>
Cc: Chin Liang See <chin.liang.see@intel.com>
Cc: Dalon Westergreen <dwesterg@gmail.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Cc: Tien Fong Chee <tien.fong.chee@intel.com>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
arch/arm/mach-socfpga/misc_gen5.c