linux/drivers/watchdog/rza_wdt.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Renesas RZ/A Series WDT Driver
 *
 * Copyright (C) 2017 Renesas Electronics America, Inc.
 * Copyright (C) 2017 Chris Brandt
 */

#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>

#define DEFAULT_TIMEOUT

/* Watchdog Timer Registers */
#define WTCSR
#define WTCSR_MAGIC
#define WTSCR_WT
#define WTSCR_TME
#define WTSCR_CKS(i)

#define WTCNT
#define WTCNT_MAGIC

#define WRCSR
#define WRCSR_MAGIC
#define WRCSR_RSTE
#define WRCSR_CLEAR_WOVF

/* The maximum CKS register setting value to get the longest timeout */
#define CKS_3BIT
#define CKS_4BIT

#define DIVIDER_3BIT
#define DIVIDER_4BIT

struct rza_wdt {};

static void rza_wdt_calc_timeout(struct rza_wdt *priv, int timeout)
{}

static int rza_wdt_start(struct watchdog_device *wdev)
{}

static int rza_wdt_stop(struct watchdog_device *wdev)
{}

static int rza_wdt_ping(struct watchdog_device *wdev)
{}

static int rza_set_timeout(struct watchdog_device *wdev, unsigned int timeout)
{}

static int rza_wdt_restart(struct watchdog_device *wdev, unsigned long action,
			    void *data)
{}

static const struct watchdog_info rza_wdt_ident =;

static const struct watchdog_ops rza_wdt_ops =;

static int rza_wdt_probe(struct platform_device *pdev)
{}

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

static struct platform_driver rza_wdt_driver =;

module_platform_driver();

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