#include <linux/delay.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
#define BCM6345_RESET_NUM …
#define BCM6345_RESET_SLEEP_MIN_US …
#define BCM6345_RESET_SLEEP_MAX_US …
struct bcm6345_reset { … };
static inline struct bcm6345_reset *
to_bcm6345_reset(struct reset_controller_dev *rcdev)
{ … }
static int bcm6345_reset_update(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int bcm6345_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int bcm6345_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int bcm6345_reset_reset(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int bcm6345_reset_status(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct reset_control_ops bcm6345_reset_ops = …;
static int bcm6345_reset_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id bcm6345_reset_of_match[] = …;
static struct platform_driver bcm6345_reset_driver = …;
builtin_platform_driver(…) …;