#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
#include <linux/reset/reset-simple.h>
#include <linux/spinlock.h>
static inline struct reset_simple_data *
to_reset_simple_data(struct reset_controller_dev *rcdev)
{ … }
static int reset_simple_update(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int reset_simple_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int reset_simple_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int reset_simple_reset(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int reset_simple_status(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
const struct reset_control_ops reset_simple_ops = …;
EXPORT_SYMBOL_GPL(…);
struct reset_simple_devdata { … };
#define SOCFPGA_NR_BANKS …
static const struct reset_simple_devdata reset_simple_socfpga = …;
static const struct reset_simple_devdata reset_simple_active_low = …;
static const struct of_device_id reset_simple_dt_ids[] = …;
static int reset_simple_probe(struct platform_device *pdev)
{ … }
static struct platform_driver reset_simple_driver = …;
builtin_platform_driver(…) …;