#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include "reset.h"
static inline struct mtk_clk_rst_data *to_mtk_clk_rst_data(struct reset_controller_dev *rcdev)
{ … }
static int mtk_reset_update(struct reset_controller_dev *rcdev,
unsigned long id, bool deassert)
{ … }
static int mtk_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int mtk_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int mtk_reset(struct reset_controller_dev *rcdev, unsigned long id)
{ … }
static int mtk_reset_update_set_clr(struct reset_controller_dev *rcdev,
unsigned long id, bool deassert)
{ … }
static int mtk_reset_assert_set_clr(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int mtk_reset_deassert_set_clr(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int mtk_reset_set_clr(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct reset_control_ops mtk_reset_ops = …;
static const struct reset_control_ops mtk_reset_ops_set_clr = …;
static int reset_xlate(struct reset_controller_dev *rcdev,
const struct of_phandle_args *reset_spec)
{ … }
int mtk_register_reset_controller(struct device_node *np,
const struct mtk_clk_rst_desc *desc)
{ … }
int mtk_register_reset_controller_with_dev(struct device *dev,
const struct mtk_clk_rst_desc *desc)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_LICENSE(…) …;