Merge tag 'lkdtm-v4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[linux-2.6-block.git] / drivers / watchdog / da9063_wdt.c
index a100f648880d85315e4354176c890706a38e58cb..5d6b4e5f7989ccc4d63a88e8b366f9b6d48b63bb 100644 (file)
@@ -34,6 +34,7 @@ static const unsigned int wdt_timeout[] = { 0, 2, 4, 8, 16, 32, 65, 131 };
 #define DA9063_WDT_MIN_TIMEOUT         wdt_timeout[DA9063_TWDSCALE_MIN]
 #define DA9063_WDT_MAX_TIMEOUT         wdt_timeout[DA9063_TWDSCALE_MAX]
 #define DA9063_WDG_TIMEOUT             wdt_timeout[3]
+#define DA9063_RESET_PROTECTION_MS     256
 
 struct da9063_watchdog {
        struct da9063 *da9063;
@@ -171,6 +172,7 @@ static int da9063_wdt_probe(struct platform_device *pdev)
        wdt->wdtdev.ops = &da9063_watchdog_ops;
        wdt->wdtdev.min_timeout = DA9063_WDT_MIN_TIMEOUT;
        wdt->wdtdev.max_timeout = DA9063_WDT_MAX_TIMEOUT;
+       wdt->wdtdev.min_hw_heartbeat_ms = DA9063_RESET_PROTECTION_MS;
        wdt->wdtdev.timeout = DA9063_WDG_TIMEOUT;
        wdt->wdtdev.parent = &pdev->dev;