I am using freescale p1020rdb board and freescale provided uboot 2011-12 for the same board.
I want to store the reset cause of last time.
I want to verify that the board is reset due to "POR" or "Watchdog triggered reset"?
From the reference manual I thought GUTS_MCPSUMR, GUTS_AUTORSTSR, GUTS_RSTRSCR register should contain the reset reason,
however when I printed in Uboot source code, it was 0 after reset.
How can i find out the reason of the status register not updating.
From e500 manual I found that after hard reset all the above registers will be reset.
So my thought is, instead of hard-reset I will do soft reset and can get the reason for reset.
Can someone provide me uboot sample code for soft reset?
Thanks & regards,