Skip to content

Commit 47110b6

Browse files
Taniya Dasbebarino
authored andcommitted
clk: qcom: gcc: Add support for GCC LPASS clock for SC7180
Add the GCC lpass clock which is required to access the LPASS core clocks. Signed-off-by: Taniya Das <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 381cc6f commit 47110b6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/clk/qcom/gcc-sc7180.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,6 +2251,19 @@ static struct clk_branch gcc_mss_q6_memnoc_axi_clk = {
22512251
},
22522252
};
22532253

2254+
static struct clk_branch gcc_lpass_cfg_noc_sway_clk = {
2255+
.halt_reg = 0x47018,
2256+
.halt_check = BRANCH_HALT_DELAY,
2257+
.clkr = {
2258+
.enable_reg = 0x47018,
2259+
.enable_mask = BIT(0),
2260+
.hw.init = &(struct clk_init_data){
2261+
.name = "gcc_lpass_cfg_noc_sway_clk",
2262+
.ops = &clk_branch2_ops,
2263+
},
2264+
},
2265+
};
2266+
22542267
static struct gdsc ufs_phy_gdsc = {
22552268
.gdscr = 0x77004,
22562269
.pd = {
@@ -2428,6 +2441,7 @@ static struct clk_regmap *gcc_sc7180_clocks[] = {
24282441
[GCC_MSS_Q6_MEMNOC_AXI_CLK] = &gcc_mss_q6_memnoc_axi_clk.clkr,
24292442
[GCC_MSS_SNOC_AXI_CLK] = &gcc_mss_snoc_axi_clk.clkr,
24302443
[GCC_SEC_CTRL_CLK_SRC] = &gcc_sec_ctrl_clk_src.clkr,
2444+
[GCC_LPASS_CFG_NOC_SWAY_CLK] = &gcc_lpass_cfg_noc_sway_clk.clkr,
24312445
};
24322446

24332447
static const struct qcom_reset_map gcc_sc7180_resets[] = {

0 commit comments

Comments
 (0)