linux/drivers/watchdog/rzv2h_wdt.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Renesas RZ/V2H(P) WDT Watchdog Driver
 *
 * Copyright (C) 2024 Renesas Electronics Corporation.
 */
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/reset.h>
#include <linux/units.h>
#include <linux/watchdog.h>

#define WDTRR
#define WDTCR
#define WDTSR
#define WDTRCR

#define WDTCR_TOPS_1024
#define WDTCR_TOPS_16384

#define WDTCR_CKS_CLK_1
#define WDTCR_CKS_CLK_256

#define WDTCR_RPES_0
#define WDTCR_RPES_75

#define WDTCR_RPSS_25
#define WDTCR_RPSS_100

#define WDTRCR_RSTIRQS

#define MAX_TIMEOUT_CYCLES
#define CLOCK_DIV_BY_256

#define WDT_DEFAULT_TIMEOUT

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

struct rzv2h_wdt_priv {};

static int rzv2h_wdt_ping(struct watchdog_device *wdev)
{}

static void rzv2h_wdt_setup(struct watchdog_device *wdev, u16 wdtcr)
{}

static int rzv2h_wdt_start(struct watchdog_device *wdev)
{}

static int rzv2h_wdt_stop(struct watchdog_device *wdev)
{}

static const struct watchdog_info rzv2h_wdt_ident =;

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

static const struct watchdog_ops rzv2h_wdt_ops =;

static int rzv2h_wdt_probe(struct platform_device *pdev)
{}

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

static struct platform_driver rzv2h_wdt_driver =;
module_platform_driver();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();