mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
clk: qcom: tcsrcc-sm8650: Add support for Milos SoC
The Milos SoC has a very similar tcsrcc block, only TCSR_UFS_CLKREF_EN uses different regs, and both TCSR_USB2_CLKREF_EN and TCSR_USB3_CLKREF_EN are not present. Modify these resources at probe if we're probing for Milos. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Link: https://lore.kernel.org/r/20250707-sm7635-clocks-misc-v2-4-b49f19055768@fairphone.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
5009024ad7
commit
7181c64fdd
@@ -148,6 +148,7 @@ static const struct qcom_cc_desc tcsr_cc_sm8650_desc = {
|
||||
};
|
||||
|
||||
static const struct of_device_id tcsr_cc_sm8650_match_table[] = {
|
||||
{ .compatible = "qcom,milos-tcsr" },
|
||||
{ .compatible = "qcom,sm8650-tcsr" },
|
||||
{ }
|
||||
};
|
||||
@@ -155,6 +156,13 @@ MODULE_DEVICE_TABLE(of, tcsr_cc_sm8650_match_table);
|
||||
|
||||
static int tcsr_cc_sm8650_probe(struct platform_device *pdev)
|
||||
{
|
||||
if (of_device_is_compatible(pdev->dev.of_node, "qcom,milos-tcsr")) {
|
||||
tcsr_ufs_clkref_en.halt_reg = 0x31118;
|
||||
tcsr_ufs_clkref_en.clkr.enable_reg = 0x31118;
|
||||
tcsr_cc_sm8650_clocks[TCSR_USB2_CLKREF_EN] = NULL;
|
||||
tcsr_cc_sm8650_clocks[TCSR_USB3_CLKREF_EN] = NULL;
|
||||
}
|
||||
|
||||
return qcom_cc_probe(pdev, &tcsr_cc_sm8650_desc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user