linux/drivers/watchdog/rn5t618_wdt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Watchdog driver for Ricoh RN5T618 PMIC
 *
 * Copyright (C) 2014 Beniamino Galvani <[email protected]>
 */

#include <linux/device.h>
#include <linux/mfd/rn5t618.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>

#define DRIVER_NAME

static bool nowayout = WATCHDOG_NOWAYOUT;
static unsigned int timeout;

module_param(timeout, uint, 0);
MODULE_PARM_DESC();

module_param(nowayout, bool, 0);
MODULE_PARM_DESC();

struct rn5t618_wdt {};

/*
 * This array encodes the values of WDOGTIM field for the supported
 * watchdog expiration times. If the watchdog is not accessed before
 * the timer expiration, the PMU generates an interrupt and if the CPU
 * doesn't clear it within one second the system is restarted.
 */
static const struct {} rn5t618_wdt_map[] =;

static int rn5t618_wdt_set_timeout(struct watchdog_device *wdt_dev,
				   unsigned int t)
{}

static int rn5t618_wdt_start(struct watchdog_device *wdt_dev)
{}

static int rn5t618_wdt_stop(struct watchdog_device *wdt_dev)
{}

static int rn5t618_wdt_ping(struct watchdog_device *wdt_dev)
{}

static const struct watchdog_info rn5t618_wdt_info =;

static const struct watchdog_ops rn5t618_wdt_ops =;

static int rn5t618_wdt_probe(struct platform_device *pdev)
{}

static struct platform_driver rn5t618_wdt_driver =;

module_platform_driver();

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