How to get the restart reason

My AMB82-mini board reboots randomly, i have the watchdog running, but i dont think thats the reason.

Is there an api i can call to give the restart reason, or boot reason?

Thanks