#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#define RTD119X_TCWCR …
#define RTD119X_TCWTR …
#define RTD119X_TCWOV …
#define RTD119X_TCWCR_WDEN_DISABLED …
#define RTD119X_TCWCR_WDEN_ENABLED …
#define RTD119X_TCWCR_WDEN_MASK …
#define RTD119X_TCWTR_WDCLR …
struct rtd119x_watchdog_device { … };
static int rtd119x_wdt_start(struct watchdog_device *wdev)
{ … }
static int rtd119x_wdt_stop(struct watchdog_device *wdev)
{ … }
static int rtd119x_wdt_ping(struct watchdog_device *wdev)
{ … }
static int rtd119x_wdt_set_timeout(struct watchdog_device *wdev, unsigned int val)
{ … }
static const struct watchdog_ops rtd119x_wdt_ops = …;
static const struct watchdog_info rtd119x_wdt_info = …;
static const struct of_device_id rtd119x_wdt_dt_ids[] = …;
static int rtd119x_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver rtd119x_wdt_driver = …;
builtin_platform_driver(…) …;