linux/drivers/watchdog/mt7621_wdt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Ralink MT7621/MT7628 built-in hardware watchdog timer
 *
 * Copyright (C) 2014 John Crispin <[email protected]>
 *
 * This driver was based on: drivers/watchdog/rt2880_wdt.c
 */

#include <linux/clk.h>
#include <linux/reset.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/watchdog.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/mod_devicetable.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>

#define SYSC_RSTSTAT
#define WDT_RST_CAUSE

#define RALINK_WDT_TIMEOUT

#define TIMER_REG_TMRSTAT
#define TIMER_REG_TMR1LOAD
#define TIMER_REG_TMR1CTL

#define TMR1CTL_ENABLE
#define TMR1CTL_RESTART
#define TMR1CTL_PRESCALE_SHIFT

struct mt7621_wdt_data {};

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

static inline void rt_wdt_w32(void __iomem *base, unsigned int reg, u32 val)
{}

static inline u32 rt_wdt_r32(void __iomem *base, unsigned int reg)
{}

static int mt7621_wdt_ping(struct watchdog_device *w)
{}

static int mt7621_wdt_set_timeout(struct watchdog_device *w, unsigned int t)
{}

static int mt7621_wdt_start(struct watchdog_device *w)
{}

static int mt7621_wdt_stop(struct watchdog_device *w)
{}

static int mt7621_wdt_bootcause(struct mt7621_wdt_data *d)
{}

static int mt7621_wdt_is_running(struct watchdog_device *w)
{}

static const struct watchdog_info mt7621_wdt_info =;

static const struct watchdog_ops mt7621_wdt_ops =;

static int mt7621_wdt_probe(struct platform_device *pdev)
{}

static void mt7621_wdt_shutdown(struct platform_device *pdev)
{}

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

static struct platform_driver mt7621_wdt_driver =;

module_platform_driver();

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