#include <linux/io.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#define RSTMGR_REG_WR_ACCESS_OFFSET …
#define RSTMGR_REG_CHIP_SOFT_RST_OFFSET …
#define RSTMGR_WR_PASSWORD …
#define RSTMGR_WR_PASSWORD_SHIFT …
#define RSTMGR_WR_ACCESS_ENABLE …
static void __iomem *kona_reset_base;
static int kona_reset_handler(struct sys_off_data *data)
{ … }
static int kona_reset_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id of_match[] = …;
static struct platform_driver bcm_kona_reset_driver = …;
builtin_platform_driver(…) …;