linux/drivers/watchdog/max77620_wdt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Maxim MAX77620 Watchdog Driver
 *
 * Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved.
 * Copyright (C) 2022 Luca Ceresoli
 *
 * Author: Laxman Dewangan <[email protected]>
 * Author: Luca Ceresoli <[email protected]>
 */

#include <linux/err.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/mfd/max77620.h>
#include <linux/mfd/max77714.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/watchdog.h>

static bool nowayout = WATCHDOG_NOWAYOUT;

/**
 * struct max77620_variant - Data specific to a chip variant
 * @wdt_info:            watchdog descriptor
 * @reg_onoff_cnfg2:     ONOFF_CNFG2 register offset
 * @reg_cnfg_glbl2:      CNFG_GLBL2 register offset
 * @reg_cnfg_glbl3:      CNFG_GLBL3 register offset
 * @wdtc_mask:           WDTC bit mask in CNFG_GLBL3 (=bits to update to ping the watchdog)
 * @bit_wd_rst_wk:       WD_RST_WK bit offset within ONOFF_CNFG2
 * @cnfg_glbl2_cfg_bits: configuration bits to enable in CNFG_GLBL2 register
 */
struct max77620_variant {};

struct max77620_wdt {};

static const struct max77620_variant max77620_wdt_data =;

static const struct max77620_variant max77714_wdt_data =;

static int max77620_wdt_start(struct watchdog_device *wdt_dev)
{}

static int max77620_wdt_stop(struct watchdog_device *wdt_dev)
{}

static int max77620_wdt_ping(struct watchdog_device *wdt_dev)
{}

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

static const struct watchdog_info max77620_wdt_info =;

static const struct watchdog_ops max77620_wdt_ops =;

static int max77620_wdt_probe(struct platform_device *pdev)
{}

static const struct platform_device_id max77620_wdt_devtype[] =;
MODULE_DEVICE_TABLE(platform, max77620_wdt_devtype);

static struct platform_driver max77620_wdt_driver =;

module_platform_driver();

MODULE_DESCRIPTION();

module_param(nowayout, bool, 0);
MODULE_PARM_DESC();

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