linux/drivers/watchdog/sl28cpld_wdt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * sl28cpld watchdog driver
 *
 * Copyright 2020 Kontron Europe GmbH
 */

#include <linux/kernel.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/watchdog.h>

/*
 * Watchdog timer block registers.
 */
#define WDT_CTRL
#define WDT_CTRL_EN
#define WDT_CTRL_LOCK
#define WDT_CTRL_ASSERT_SYS_RESET
#define WDT_CTRL_ASSERT_WDT_TIMEOUT
#define WDT_TIMEOUT
#define WDT_KICK
#define WDT_KICK_VALUE
#define WDT_COUNT

#define WDT_DEFAULT_TIMEOUT

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

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

struct sl28cpld_wdt {};

static int sl28cpld_wdt_ping(struct watchdog_device *wdd)
{}

static int sl28cpld_wdt_start(struct watchdog_device *wdd)
{}

static int sl28cpld_wdt_stop(struct watchdog_device *wdd)
{}

static unsigned int sl28cpld_wdt_get_timeleft(struct watchdog_device *wdd)
{}

static int sl28cpld_wdt_set_timeout(struct watchdog_device *wdd,
				    unsigned int timeout)
{}

static const struct watchdog_info sl28cpld_wdt_info =;

static const struct watchdog_ops sl28cpld_wdt_ops =;

static int sl28cpld_wdt_probe(struct platform_device *pdev)
{}

static const struct of_device_id sl28cpld_wdt_of_match[] =;
MODULE_DEVICE_TABLE(of, sl28cpld_wdt_of_match);

static struct platform_driver sl28cpld_wdt_driver =;
module_platform_driver();

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