linux/drivers/platform/cznic/turris-omnia-mcu-watchdog.c

// SPDX-License-Identifier: GPL-2.0
/*
 * CZ.NIC's Turris Omnia MCU watchdog driver
 *
 * 2024 by Marek Behún <[email protected]>
 */

#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/i2c.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/units.h>
#include <linux/watchdog.h>

#include <linux/turris-omnia-mcu-interface.h>
#include "turris-omnia-mcu.h"

#define WATCHDOG_TIMEOUT

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

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

static int omnia_wdt_start(struct watchdog_device *wdt)
{}

static int omnia_wdt_stop(struct watchdog_device *wdt)
{}

static int omnia_wdt_ping(struct watchdog_device *wdt)
{}

static int omnia_wdt_set_timeout(struct watchdog_device *wdt,
				 unsigned int timeout)
{}

static unsigned int omnia_wdt_get_timeleft(struct watchdog_device *wdt)
{}

static const struct watchdog_info omnia_wdt_info =;

static const struct watchdog_ops omnia_wdt_ops =;

int omnia_mcu_register_watchdog(struct omnia_mcu *mcu)
{}