#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/reset-controller.h>
struct reset_props { … };
struct mchp_reset_context { … };
static struct regmap_config sparx5_reset_regmap_config = …;
static int sparx5_switch_reset(struct mchp_reset_context *ctx)
{ … }
static int sparx5_reset_noop(struct reset_controller_dev *rcdev,
unsigned long id)
{ … }
static const struct reset_control_ops sparx5_reset_ops = …;
static int mchp_sparx5_map_syscon(struct platform_device *pdev, char *name,
struct regmap **target)
{ … }
static int mchp_sparx5_map_io(struct platform_device *pdev, int index,
struct regmap **target)
{ … }
static int mchp_sparx5_reset_probe(struct platform_device *pdev)
{ … }
static const struct reset_props reset_props_sparx5 = …;
static const struct reset_props reset_props_lan966x = …;
static const struct of_device_id mchp_sparx5_reset_of_match[] = …;
static struct platform_driver mchp_sparx5_reset_driver = …;
static int __init mchp_sparx5_reset_init(void)
{ … }
postcore_initcall(mchp_sparx5_reset_init);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;