#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/types.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>
#include "reset-syscfg.h"
struct syscfg_reset_channel { … };
struct syscfg_reset_controller { … };
#define to_syscfg_reset_controller(_rst) …
static int syscfg_reset_program_hw(struct reset_controller_dev *rcdev,
unsigned long idx, int assert)
{ … }
static int syscfg_reset_assert(struct reset_controller_dev *rcdev,
unsigned long idx)
{ … }
static int syscfg_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long idx)
{ … }
static int syscfg_reset_dev(struct reset_controller_dev *rcdev,
unsigned long idx)
{ … }
static int syscfg_reset_status(struct reset_controller_dev *rcdev,
unsigned long idx)
{ … }
static const struct reset_control_ops syscfg_reset_ops = …;
static int syscfg_reset_controller_register(struct device *dev,
const struct syscfg_reset_controller_data *data)
{ … }
int syscfg_reset_probe(struct platform_device *pdev)
{ … }