These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / watchdog / omap_wdt.h
index 09b774c..42f31ec 100644 (file)
@@ -50,5 +50,6 @@
 
 #define PTV                    0       /* prescale */
 #define GET_WLDR_VAL(secs)     (0xffffffff - ((secs) * (32768/(1<<PTV))) + 1)
+#define GET_WCCR_SECS(val)     ((0xffffffff - (val) + 1) / (32768/(1<<PTV)))
 
 #endif                         /* _OMAP_WATCHDOG_H */