We are using the TI SDK Kernel 3.14.26. We are finding that when making use of the watchdog driver that we cannot obtain a WDIOC_GETBOOTSTATUS of anything other than zero. We are certain that the device is being reset via a watchdog trip.
Looking at the probe function inside of omap_wdt.c the following lines seem to suggest it should be possible if the right information is provided:
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;
Currently the first conditional evaluates to false. It appears that the reset read sources is not being provided by the platform structure somehow. I wouldn't expect this since this appears to be attempting a simple register read of something equivalent to the PRM_RSTST. The am335x has this register available and I would expect this to work. Am I missing something?