/* SPDX-License-Identifier: GPL-2.0+ */ /* * omap_wdt.h * * OMAP Watchdog header file * * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ */ #ifndef __OMAP_WDT_H__ #define __OMAP_WDT_H__ #ifndef __ASSEMBLY__ #include #endif /* * Watchdog: * Using the prescaler, the OMAP watchdog could go for many * months before firing. These limits work without scaling, * with the 60 second default assumed by most tools and docs. */ #define TIMER_MARGIN_MAX (24 * 60 * 60) /* 1 day */ #define TIMER_MARGIN_DEFAULT 60 /* 60 secs */ #define TIMER_MARGIN_MIN 1 #define PTV 0 /* prescale */ #define GET_WLDR_VAL(secs) (0xffffffff - ((secs) * (32768/(1<