#include <linux/io.h>
#include <linux/init.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
#include <linux/reboot.h>
struct ath79_reset { … };
#define FULL_CHIP_RESET …
static int ath79_reset_update(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int ath79_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int ath79_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int ath79_reset_status(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct reset_control_ops ath79_reset_ops = …;
static int ath79_reset_restart_handler(struct notifier_block *nb,
unsigned long action, void *data)
{ … }
static int ath79_reset_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id ath79_reset_dt_ids[] = …;
static struct platform_driver ath79_reset_driver = …;
builtin_platform_driver(…) …;