linux/drivers/watchdog/meson_gxbb_wdt.c

// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
 * Copyright (c) 2016 BayLibre, SAS.
 * Author: Neil Armstrong <[email protected]>
 *
 */
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/watchdog.h>

#define DEFAULT_TIMEOUT

#define GXBB_WDT_CTRL_REG
#define GXBB_WDT_TCNT_REG
#define GXBB_WDT_RSET_REG

#define GXBB_WDT_CTRL_CLKDIV_EN
#define GXBB_WDT_CTRL_CLK_EN
#define GXBB_WDT_CTRL_EN
#define GXBB_WDT_CTRL_DIV_MASK

#define GXBB_WDT_TCNT_SETUP_MASK
#define GXBB_WDT_TCNT_CNT_SHIFT

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

static unsigned int timeout;
module_param(timeout, uint, 0);
MODULE_PARM_DESC();

struct meson_gxbb_wdt {};

struct wdt_params {};

static int meson_gxbb_wdt_start(struct watchdog_device *wdt_dev)
{}

static int meson_gxbb_wdt_stop(struct watchdog_device *wdt_dev)
{}

static int meson_gxbb_wdt_ping(struct watchdog_device *wdt_dev)
{}

static int meson_gxbb_wdt_set_timeout(struct watchdog_device *wdt_dev,
				      unsigned int timeout)
{}

static unsigned int meson_gxbb_wdt_get_timeleft(struct watchdog_device *wdt_dev)
{}

static const struct watchdog_ops meson_gxbb_wdt_ops =;

static const struct watchdog_info meson_gxbb_wdt_info =;

static int __maybe_unused meson_gxbb_wdt_resume(struct device *dev)
{}

static int __maybe_unused meson_gxbb_wdt_suspend(struct device *dev)
{}

static const struct dev_pm_ops meson_gxbb_wdt_pm_ops =;

static const struct wdt_params gxbb_params =;

static const struct wdt_params t7_params =;

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

static int meson_gxbb_wdt_probe(struct platform_device *pdev)
{}

static struct platform_driver meson_gxbb_wdt_driver =;

module_platform_driver();

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