clk: qcom: mmcc-msm8974: Add OXILICX_GDSC for msm8226
authorLuca Weiss <luca@z3ntu.xyz>
Mon, 29 May 2023 08:34:40 +0000 (10:34 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 10 Jul 2023 03:25:28 +0000 (20:25 -0700)
On msm8226 we also have OXILICX_GDSC but we need a slighly different
config, with a .cxcs defined for clock but with no parent.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20230506-msm8226-oxilicx-v2-1-f7e4ebff3d61@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/mmcc-msm8974.c

index 82f6bad..c37524d 100644 (file)
@@ -2426,6 +2426,16 @@ static struct gdsc oxilicx_gdsc = {
        .pwrsts = PWRSTS_OFF_ON,
 };
 
+static struct gdsc oxili_cx_gdsc_msm8226 = {
+       .gdscr = 0x4034,
+       .cxcs = (unsigned int []){ 0x4028 },
+       .cxc_count = 1,
+       .pd = {
+               .name = "oxili_cx",
+       },
+       .pwrsts = PWRSTS_OFF_ON,
+};
+
 static struct clk_regmap *mmcc_msm8226_clocks[] = {
        [MMSS_AHB_CLK_SRC] = &mmss_ahb_clk_src.clkr,
        [MMSS_AXI_CLK_SRC] = &mmss_axi_clk_src.clkr,
@@ -2515,6 +2525,7 @@ static struct gdsc *mmcc_msm8226_gdscs[] = {
        [MDSS_GDSC] = &mdss_gdsc,
        [CAMSS_JPEG_GDSC] = &camss_jpeg_gdsc,
        [CAMSS_VFE_GDSC] = &camss_vfe_gdsc,
+       [OXILICX_GDSC] = &oxili_cx_gdsc_msm8226,
 };
 
 static const struct regmap_config mmcc_msm8226_regmap_config = {