[v2] clk: qcom: mmcc-msm8974: Add OXILICX_GDSC for msm8226

Message ID 20230506-msm8226-oxilicx-v2-1-f7e4ebff3d61@z3ntu.xyz
State New
Headers
Series [v2] clk: qcom: mmcc-msm8974: Add OXILICX_GDSC for msm8226 |

Commit Message

Luca Weiss May 29, 2023, 8:34 a.m. UTC
  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>
---
Changes in v2:
- oxilicx -> oxili_cx in variable name and .name field
- Pick up tags
- Link to v1: https://lore.kernel.org/r/20230506-msm8226-oxilicx-v1-1-52e34b94ff22@z3ntu.xyz
---
 drivers/clk/qcom/mmcc-msm8974.c | 11 +++++++++++
 1 file changed, 11 insertions(+)


---
base-commit: dd9e11d6477a52ede9ebe575c83285e79e823889
change-id: 20230506-msm8226-oxilicx-7f3f0f8e491d

Best regards,
  

Comments

Bjorn Andersson July 10, 2023, 5:07 a.m. UTC | #1
On Mon, 29 May 2023 10:34:40 +0200, Luca Weiss wrote:
> On msm8226 we also have OXILICX_GDSC but we need a slighly different
> config, with a .cxcs defined for clock but with no parent.
> 
> 

Applied, thanks!

[1/1] clk: qcom: mmcc-msm8974: Add OXILICX_GDSC for msm8226
      commit: e21e74c6e251152dfc45efdf2279db2778d51223

Best regards,
  

Patch

diff --git a/drivers/clk/qcom/mmcc-msm8974.c b/drivers/clk/qcom/mmcc-msm8974.c
index 4273fce9a4a4..61f1925d2817 100644
--- a/drivers/clk/qcom/mmcc-msm8974.c
+++ b/drivers/clk/qcom/mmcc-msm8974.c
@@ -2443,6 +2443,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,
@@ -2533,6 +2543,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 = {