#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/watchdog.h>
#include <linux/platform_device.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/jiffies.h>
#include <linux/mfd/da9062/registers.h>
#include <linux/mfd/da9062/core.h>
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/of.h>
static const unsigned int wdt_timeout[] = …;
#define DA9062_TWDSCALE_DISABLE …
#define DA9062_TWDSCALE_MIN …
#define DA9062_TWDSCALE_MAX …
#define DA9062_WDT_MIN_TIMEOUT …
#define DA9062_WDT_MAX_TIMEOUT …
#define DA9062_WDG_DEFAULT_TIMEOUT …
#define DA9062_RESET_PROTECTION_MS …
struct da9062_watchdog { … };
static unsigned int da9062_wdt_read_timeout(struct da9062_watchdog *wdt)
{ … }
static unsigned int da9062_wdt_timeout_to_sel(unsigned int secs)
{ … }
static int da9062_reset_watchdog_timer(struct da9062_watchdog *wdt)
{ … }
static int da9062_wdt_update_timeout_register(struct da9062_watchdog *wdt,
unsigned int regval)
{ … }
static int da9062_wdt_start(struct watchdog_device *wdd)
{ … }
static int da9062_wdt_stop(struct watchdog_device *wdd)
{ … }
static int da9062_wdt_ping(struct watchdog_device *wdd)
{ … }
static int da9062_wdt_set_timeout(struct watchdog_device *wdd,
unsigned int timeout)
{ … }
static int da9062_wdt_restart(struct watchdog_device *wdd, unsigned long action,
void *data)
{ … }
static const struct watchdog_info da9062_watchdog_info = …;
static const struct watchdog_ops da9062_watchdog_ops = …;
static const struct of_device_id da9062_compatible_id_table[] = …;
MODULE_DEVICE_TABLE(of, da9062_compatible_id_table);
static int da9062_wdt_probe(struct platform_device *pdev)
{ … }
static int __maybe_unused da9062_wdt_suspend(struct device *dev)
{ … }
static int __maybe_unused da9062_wdt_resume(struct device *dev)
{ … }
static SIMPLE_DEV_PM_OPS(da9062_wdt_pm_ops,
da9062_wdt_suspend, da9062_wdt_resume);
static struct platform_driver da9062_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;