I would like to implement a boot counter in u-boot, therefore I would need some register where i can keep the boot counter value. This value shall not be reseted after a HW reset.
Usecase: System cold boots, bootcounter increased by one, try to boot Linux, successful reset this counter.
If Linux panics on boot up, watchdog interrupts, u-boot boots again bootcounter ++;
If countervalue is e.g. > 4 then load alternative Linux.
Are there any registers on the vf6 cpu that are "reset save" and could be used for this usecase?
Thanx a lot, Andi