linux/drivers/watchdog/moxart_wdt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * MOXA ART SoCs watchdog driver.
 *
 * Copyright (C) 2013 Jonas Jensen
 *
 * Jonas Jensen <[email protected]>
 *
 */

#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#include <linux/moduleparam.h>

#define REG_COUNT
#define REG_MODE
#define REG_ENABLE

struct moxart_wdt_dev {};

static int heartbeat;

static int moxart_wdt_restart(struct watchdog_device *wdt_dev,
			      unsigned long action, void *data)
{}

static int moxart_wdt_stop(struct watchdog_device *wdt_dev)
{}

static int moxart_wdt_start(struct watchdog_device *wdt_dev)
{}

static int moxart_wdt_set_timeout(struct watchdog_device *wdt_dev,
				  unsigned int timeout)
{}

static const struct watchdog_info moxart_wdt_info =;

static const struct watchdog_ops moxart_wdt_ops =;

static int moxart_wdt_probe(struct platform_device *pdev)
{}

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

static struct platform_driver moxart_wdt_driver =;
module_platform_driver();

module_param(heartbeat, int, 0);
MODULE_PARM_DESC();

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