linux/drivers/watchdog/stpmic1_wdt.c

// SPDX-License-Identifier: GPL-2.0
// Copyright (C) STMicroelectronics 2018
// Author: Pascal Paillet <[email protected]> for STMicroelectronics.

#include <linux/kernel.h>
#include <linux/mfd/stpmic1.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/watchdog.h>

/* WATCHDOG CONTROL REGISTER bit */
#define WDT_START
#define WDT_PING
#define WDT_START_MASK
#define WDT_PING_MASK
#define WDT_STOP

#define PMIC_WDT_MIN_TIMEOUT
#define PMIC_WDT_MAX_TIMEOUT
#define PMIC_WDT_DEFAULT_TIMEOUT

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

struct stpmic1_wdt {};

static int pmic_wdt_start(struct watchdog_device *wdd)
{}

static int pmic_wdt_stop(struct watchdog_device *wdd)
{}

static int pmic_wdt_ping(struct watchdog_device *wdd)
{}

static int pmic_wdt_set_timeout(struct watchdog_device *wdd,
				unsigned int timeout)
{}

static const struct watchdog_info pmic_watchdog_info =;

static const struct watchdog_ops pmic_watchdog_ops =;

static int pmic_wdt_probe(struct platform_device *pdev)
{}

static const struct of_device_id of_pmic_wdt_match[] =;

MODULE_DEVICE_TABLE(of, of_pmic_wdt_match);

static struct platform_driver stpmic1_wdt_driver =;
module_platform_driver();

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