Skip to content

Commit 7e726f3

Browse files
Ansuelandersson
authored andcommitted
clk: qcom: gcc-ipq806x: add additional freq for sdc table
Add additional freq supported for the sdc table. The ops are changed to the floor_ops to handle a freq request of 52kHz where we need to provide a freq of 51.2kHz instead for stability reason. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Tested-by: Jonathan McDowell <noodles@earth.li> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220226135235.10051-11-ansuelsmth@gmail.com
1 parent 33958ad commit 7e726f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/clk/qcom/gcc-ipq806x.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,7 @@ static const struct freq_tbl clk_tbl_sdc[] = {
12921292
{ 20210000, P_PLL8, 1, 1, 19 },
12931293
{ 24000000, P_PLL8, 4, 1, 4 },
12941294
{ 48000000, P_PLL8, 4, 1, 2 },
1295+
{ 51200000, P_PLL8, 1, 2, 15 },
12951296
{ 64000000, P_PLL8, 3, 1, 2 },
12961297
{ 96000000, P_PLL8, 4, 0, 0 },
12971298
{ 192000000, P_PLL8, 2, 0, 0 },
@@ -1325,7 +1326,7 @@ static struct clk_rcg sdc1_src = {
13251326
.name = "sdc1_src",
13261327
.parent_data = gcc_pxo_pll8,
13271328
.num_parents = ARRAY_SIZE(gcc_pxo_pll8),
1328-
.ops = &clk_rcg_ops,
1329+
.ops = &clk_rcg_floor_ops,
13291330
},
13301331
}
13311332
};

0 commit comments

Comments
 (0)