bntl
New Contributor
2 years agoArria10 reset manager stat register is always 0
Hi All,
It is important for my project to understand whether the reset has happened as a result of a watchdog trigger.
I am triggering a watchdog reboot by executing
echo 1 > /dev/watchdog0
This causes a reboot, however, when reading the address 0xFFD05000 from u-boot its value is always 0.
I thought that the u-boot was resetting the values of that particular field, thus I added this code on the ./uboot-socfpga/arch/arm/cpu/armv7/lowlevel_init.S:
ENTRY(lowlevel_init)
ldr r0, =reset_manager_base_stat
ldr r9, =(0xFFD05000)
ldr r9, [r9]
str r9, [r0]
However that variable, e.g. reset_manager_base_state remains always 0.
Any ideas what I am doing wrong?