Skip to content

Commit b791620

Browse files
kholkbebarino
authored andcommitted
clk: qcom: gcc-msm8998: Add missing hmss_gpll0_clk_src clock
To achieve CPR-Hardened functionality this clock must be on: add it in order to be able to get it managed by the CPR3 driver. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Link: https://lore.kernel.org/r/20210114221059.483390-5-angelogioacchino.delregno@somainline.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent e9f322f commit b791620

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/clk/qcom/gcc-msm8998.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,6 +2160,25 @@ static struct clk_branch gcc_hmss_trig_clk = {
21602160
},
21612161
};
21622162

2163+
static struct freq_tbl ftbl_hmss_gpll0_clk_src[] = {
2164+
F( 300000000, P_GPLL0_OUT_MAIN, 2, 0, 0),
2165+
F( 600000000, P_GPLL0_OUT_MAIN, 1, 0, 0),
2166+
{ }
2167+
};
2168+
2169+
static struct clk_rcg2 hmss_gpll0_clk_src = {
2170+
.cmd_rcgr = 0x4805c,
2171+
.hid_width = 5,
2172+
.parent_map = gcc_parent_map_1,
2173+
.freq_tbl = ftbl_hmss_gpll0_clk_src,
2174+
.clkr.hw.init = &(struct clk_init_data) {
2175+
.name = "hmss_gpll0_clk_src",
2176+
.parent_names = gcc_parent_names_1,
2177+
.num_parents = ARRAY_SIZE(gcc_parent_names_1),
2178+
.ops = &clk_rcg2_ops,
2179+
},
2180+
};
2181+
21632182
static struct clk_branch gcc_mmss_noc_cfg_ahb_clk = {
21642183
.halt_reg = 0x9004,
21652184
.halt_check = BRANCH_HALT,
@@ -2961,6 +2980,7 @@ static struct clk_regmap *gcc_msm8998_clocks[] = {
29612980
[GCC_MSS_SNOC_AXI_CLK] = &gcc_mss_snoc_axi_clk.clkr,
29622981
[GCC_MSS_MNOC_BIMC_AXI_CLK] = &gcc_mss_mnoc_bimc_axi_clk.clkr,
29632982
[GCC_MMSS_GPLL0_CLK] = &gcc_mmss_gpll0_clk.clkr,
2983+
[HMSS_GPLL0_CLK_SRC] = &hmss_gpll0_clk_src.clkr,
29642984
};
29652985

29662986
static struct gdsc *gcc_msm8998_gdscs[] = {

0 commit comments

Comments
 (0)