linux/drivers/watchdog/ts72xx_wdt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Watchdog driver for Technologic Systems TS-72xx based SBCs
 * (TS-7200, TS-7250 and TS-7260). These boards have external
 * glue logic CPLD chip, which includes programmable watchdog
 * timer.
 *
 * Copyright (c) 2009 Mika Westerberg <[email protected]>
 *
 * This driver is based on ep93xx_wdt and wm831x_wdt drivers.
 *
 */

#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/watchdog.h>
#include <linux/io.h>

#define TS72XX_WDT_DEFAULT_TIMEOUT

static int timeout;
module_param(timeout, int, 0);
MODULE_PARM_DESC();

static bool nowayout = WATCHDOG_NOWAYOUT;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC();

/* priv->control_reg */
#define TS72XX_WDT_CTRL_DISABLE
#define TS72XX_WDT_CTRL_250MS
#define TS72XX_WDT_CTRL_500MS
#define TS72XX_WDT_CTRL_1SEC
#define TS72XX_WDT_CTRL_RESERVED
#define TS72XX_WDT_CTRL_2SEC
#define TS72XX_WDT_CTRL_4SEC
#define TS72XX_WDT_CTRL_8SEC

/* priv->feed_reg */
#define TS72XX_WDT_FEED_VAL

struct ts72xx_wdt_priv {};

static int ts72xx_wdt_start(struct watchdog_device *wdd)
{}

static int ts72xx_wdt_stop(struct watchdog_device *wdd)
{}

static int ts72xx_wdt_ping(struct watchdog_device *wdd)
{}

static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to)
{}

static const struct watchdog_info ts72xx_wdt_ident =;

static const struct watchdog_ops ts72xx_wdt_ops =;

static int ts72xx_wdt_probe(struct platform_device *pdev)
{}

static struct platform_driver ts72xx_wdt_driver =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();