Hello sir,
I am working on am335x based omap-watchdog timer(kernel 3.12,omap_wdt.c). I just need to see the bootstatus or last reboot reason. Currently i can see a parameter "omap_wdt->bootstatus" used to give the bootstatus. But when i try to print it , it always shows a value of 0.
-------------------------------------------------------------------
if (pdata && pdata->read_reset_sources)
rs = pdata->read_reset_sources();
else
rs = 0;
omap_wdt->bootstatus = (rs & (1 << OMAP_MPU_WD_RST_SRC_ID_SHIFT)) ?
WDIOF_CARDRESET : 0;
pr_info("-----RESET STATUS------- %0x",omap_wdt->bootstatus);
---------------------------------------------------------
Any help is highly appreciable.
Regards
Surya