clk: qcom: common: Add support to register rcg dfs in qcom_cc_really_probe

Add support to register the rcg dfs in qcom_cc_really_probe(). This
allows users to move the call from the probe function to static
properties.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250715-sm7635-clocks-v3-1-18f9faac4984@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
Luca Weiss
2025-07-15 09:19:01 +02:00
committed by Bjorn Andersson
parent eb1af6ee48
commit b21b5b3ae0
2 changed files with 12 additions and 0 deletions

View File

@@ -390,6 +390,16 @@ int qcom_cc_really_probe(struct device *dev,
goto put_rpm;
}
if (desc->driver_data &&
desc->driver_data->dfs_rcgs &&
desc->driver_data->num_dfs_rcgs) {
ret = qcom_cc_register_rcg_dfs(regmap,
desc->driver_data->dfs_rcgs,
desc->driver_data->num_dfs_rcgs);
if (ret)
goto put_rpm;
}
cc->rclks = rclks;
cc->num_rclks = num_clks;

View File

@@ -30,6 +30,8 @@ struct qcom_cc_driver_data {
size_t num_alpha_plls;
u32 *clk_cbcrs;
size_t num_clk_cbcrs;
const struct clk_rcg_dfs_data *dfs_rcgs;
size_t num_dfs_rcgs;
void (*clk_regs_configure)(struct device *dev, struct regmap *regmap);
};