#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
#include <linux/regmap.h>
#include <dt-bindings/reset/imx7-reset.h>
#include <dt-bindings/reset/imx8mq-reset.h>
#include <dt-bindings/reset/imx8mp-reset.h>
struct imx7_src_signal { … };
struct imx7_src_variant { … };
struct imx7_src { … };
enum imx7_src_registers { … };
static int imx7_reset_update(struct imx7_src *imx7src,
unsigned long id, unsigned int value)
{ … }
static const struct imx7_src_signal imx7_src_signals[IMX7_RESET_NUM] = …;
static struct imx7_src *to_imx7_src(struct reset_controller_dev *rcdev)
{ … }
static int imx7_reset_set(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int imx7_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int imx7_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct imx7_src_variant variant_imx7 = …;
enum imx8mq_src_registers { … };
enum imx8mp_src_registers { … };
static const struct imx7_src_signal imx8mq_src_signals[IMX8MQ_RESET_NUM] = …;
static int imx8mq_reset_set(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int imx8mq_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int imx8mq_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct imx7_src_variant variant_imx8mq = …;
static const struct imx7_src_signal imx8mp_src_signals[IMX8MP_RESET_NUM] = …;
static int imx8mp_reset_set(struct reset_controller_dev *rcdev,
unsigned long id, bool assert)
{ … }
static int imx8mp_reset_assert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static int imx8mp_reset_deassert(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct imx7_src_variant variant_imx8mp = …;
static int imx7_reset_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id imx7_reset_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, imx7_reset_dt_ids);
static struct platform_driver imx7_reset_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;