linux/drivers/watchdog/jz4740_wdt.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Copyright (C) 2010, Paul Cercueil <[email protected]>
 *  JZ4740 Watchdog driver
 */

#include <linux/mfd/ingenic-tcu.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/watchdog.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/device.h>
#include <linux/clk.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/regmap.h>

#define DEFAULT_HEARTBEAT
#define MAX_HEARTBEAT

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

static unsigned int heartbeat =;
module_param(heartbeat, uint, 0);
MODULE_PARM_DESC();

struct jz4740_wdt_drvdata {};

static int jz4740_wdt_ping(struct watchdog_device *wdt_dev)
{}

static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev,
				    unsigned int new_timeout)
{}

static int jz4740_wdt_start(struct watchdog_device *wdt_dev)
{}

static int jz4740_wdt_stop(struct watchdog_device *wdt_dev)
{}

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

static const struct watchdog_info jz4740_wdt_info =;

static const struct watchdog_ops jz4740_wdt_ops =;

#ifdef CONFIG_OF
static const struct of_device_id jz4740_wdt_of_matches[] =;
MODULE_DEVICE_TABLE(of, jz4740_wdt_of_matches);
#endif

static int jz4740_wdt_probe(struct platform_device *pdev)
{}

static struct platform_driver jz4740_wdt_driver =;

module_platform_driver();

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