#include <linux/bits.h>
#include <linux/container_of.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/slab.h>
#include <linux/soc/cirrus/ep93xx.h>
#define EP93XX_SYSCON_DEVCFG …
#define EP93XX_SYSCON_DEVCFG_SWRST …
struct ep93xx_restart { … };
static int ep93xx_restart_handle(struct notifier_block *this,
unsigned long mode, void *cmd)
{ … }
static int ep93xx_reboot_probe(struct auxiliary_device *adev,
const struct auxiliary_device_id *id)
{ … }
static const struct auxiliary_device_id ep93xx_reboot_ids[] = …;
MODULE_DEVICE_TABLE(auxiliary, ep93xx_reboot_ids);
static struct auxiliary_driver ep93xx_reboot_driver = …;
module_auxiliary_driver(…) …;