mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
clk: qcom: videocc-sm7150: Use common probe handling for always-on clocks
Describe the always-on branches in a critical_cbcrs array and reference it through qcom_cc_driver_data. Let qcom_cc_really_probe() enable these branches instead of programming them directly in the driver's probe. Assisted-by: LLM Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Link: https://patch.msgid.link/20260924-clk-qcom-rework-legacy-always-on-clocks-v2-46-1479443ee016@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
3afa984ab1
commit
7cd427f13a
|
|
@ -313,7 +313,17 @@ static const struct regmap_config videocc_sm7150_regmap_config = {
|
|||
.fast_io = true,
|
||||
};
|
||||
|
||||
static const u32 videocc_sm7150_critical_cbcrs[] = {
|
||||
0x984, /* VIDEOCC_XO_CLK */
|
||||
};
|
||||
|
||||
static const struct qcom_cc_driver_data videocc_sm7150_driver_data = {
|
||||
.clk_cbcrs = videocc_sm7150_critical_cbcrs,
|
||||
.num_clk_cbcrs = ARRAY_SIZE(videocc_sm7150_critical_cbcrs),
|
||||
};
|
||||
|
||||
static const struct qcom_cc_desc videocc_sm7150_desc = {
|
||||
.driver_data = &videocc_sm7150_driver_data,
|
||||
.config = &videocc_sm7150_regmap_config,
|
||||
.clks = videocc_sm7150_clocks,
|
||||
.num_clks = ARRAY_SIZE(videocc_sm7150_clocks),
|
||||
|
|
@ -337,9 +347,6 @@ static int videocc_sm7150_probe(struct platform_device *pdev)
|
|||
|
||||
clk_fabia_pll_configure(&videocc_pll0, regmap, &videocc_pll0_config);
|
||||
|
||||
/* Keep some clocks always-on */
|
||||
qcom_branch_set_clk_en(regmap, 0x984); /* VIDEOCC_XO_CLK */
|
||||
|
||||
return qcom_cc_really_probe(&pdev->dev, &videocc_sm7150_desc, regmap);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user