#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/reset-controller.h>
#include <dt-bindings/reset/qcom,sdm845-pdc.h>
#define RPMH_SDM845_PDC_SYNC_RESET …
#define RPMH_SC7280_PDC_SYNC_RESET …
struct qcom_pdc_reset_map { … };
struct qcom_pdc_reset_desc { … };
struct qcom_pdc_reset_data { … };
static const struct regmap_config pdc_regmap_config = …;
static const struct qcom_pdc_reset_map sdm845_pdc_resets[] = …;
static const struct qcom_pdc_reset_desc sdm845_pdc_reset_desc = …;
static const struct qcom_pdc_reset_map sc7280_pdc_resets[] = …;
static const struct qcom_pdc_reset_desc sc7280_pdc_reset_desc = …;
static inline struct qcom_pdc_reset_data *to_qcom_pdc_reset_data(
struct reset_controller_dev *rcdev)
{ … }
static int qcom_pdc_control_assert(struct reset_controller_dev *rcdev,
unsigned long idx)
{ … }
static int qcom_pdc_control_deassert(struct reset_controller_dev *rcdev,
unsigned long idx)
{ … }
static const struct reset_control_ops qcom_pdc_reset_ops = …;
static int qcom_pdc_reset_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id qcom_pdc_reset_of_match[] = …;
MODULE_DEVICE_TABLE(of, qcom_pdc_reset_of_match);
static struct platform_driver qcom_pdc_reset_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;