linux/drivers/watchdog/rzg2l_wdt.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Renesas RZ/G2L WDT Watchdog Driver
 *
 * Copyright (C) 2021 Renesas Electronics Corporation
 */
#include <linux/bitops.h>
#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 WDTCNT
#define WDTSET
#define WDTTIM
#define WDTINT
#define PECR
#define PEEN
#define WDTCNT_WDTEN
#define WDTINT_INTDISP
#define PEEN_FORCE

#define WDT_DEFAULT_TIMEOUT

/* Setting period time register only 12 bit set in WDTSET[31:20] */
#define WDTSET_COUNTER_MASK
#define WDTSET_COUNTER_VAL(f)

#define F2CYCLE_NSEC(f)

#define RZV2M_A_NSEC

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

enum rz_wdt_type {};

struct rzg2l_wdt_priv {};

static void rzg2l_wdt_wait_delay(struct rzg2l_wdt_priv *priv)
{}

static u32 rzg2l_wdt_get_cycle_usec(unsigned long cycle, u32 wdttime)
{}

static void rzg2l_wdt_write(struct rzg2l_wdt_priv *priv, u32 val, unsigned int reg)
{}

static void rzg2l_wdt_init_timeout(struct watchdog_device *wdev)
{}

static int rzg2l_wdt_start(struct watchdog_device *wdev)
{}

static int rzg2l_wdt_stop(struct watchdog_device *wdev)
{}

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

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

static const struct watchdog_info rzg2l_wdt_ident =;

static int rzg2l_wdt_ping(struct watchdog_device *wdev)
{}

static const struct watchdog_ops rzg2l_wdt_ops =;

static void rzg2l_wdt_pm_disable(void *data)
{}

static int rzg2l_wdt_probe(struct platform_device *pdev)
{}

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

static int rzg2l_wdt_suspend_late(struct device *dev)
{}

static int rzg2l_wdt_resume_early(struct device *dev)
{}

static const struct dev_pm_ops rzg2l_wdt_pm_ops =;

static struct platform_driver rzg2l_wdt_driver =;
module_platform_driver();

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