arm: socfpga:agilex5: Fix system manager watchdog mode setting
authorMuhammad Hazim Izzat Zamri <muhammad.hazim.izzat.zamri@intel.com>
Mon, 13 Jan 2025 02:08:07 +0000 (10:08 +0800)
committerTien Fong Chee <tien.fong.chee@intel.com>
Fri, 24 Jan 2025 01:55:30 +0000 (09:55 +0800)
commit5a77a0b0399f7287a42a8faa21600df3b9d47a5a
tree5b34f5d2828573722af9d3525a55c4912f2a9c49
parent2eed5a1ff36217372e19f7513bd07077fc76718a
arm: socfpga:agilex5: Fix system manager watchdog mode setting

This commit is to fix the system manager watchdog mode setting to support
until mode_4 for Agilex5. This changes can refer to system manager register
map on wddbg fields.

In Agilex7 it is not detected as an issue because Agilex7 only have 4 watchdog
until mode_3 and it is already been set correctly for it to halt on any CPU in
debug mode. However, in Agilex5 this fix is needed in order to enable the watchdog
pause feature for mode_4 when entering debug mode. If 0xF is not been set on mode_4,
the Watchdog Timers will not halt on any CPU. As by default value, the pause signal
does not assert when any CPU is in debug mode and the watchdog continue to count.

Signed-off-by: Muhammad Hazim Izzat Zamri <muhammad.hazim.izzat.zamri@intel.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@intel.com>
arch/arm/mach-socfpga/include/mach/system_manager_soc64.h