Commit 5f5001a9 authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Stephen Boyd

clk: qcom: Move all sdcc rcgs to use clk_rcg2_floor_ops

The sdcc driver for msm8996/msm8916/msm8974/msm8994 and apq8084
expects a clk_set_rate() on the sdcc rcg clk to set
a floor value of supported clk rate closest to the requested
rate, by looking up the frequency table.
So move all the sdcc rcgs on all these platforms to use the
newly introduced clk_rcg2_floor_ops
Signed-off-by: default avatarRajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: default avatarRitesh Harjani <riteshh@codeaurora.org>
Signed-off-by: default avatarJeremy McNicoll <jeremymc@redhat.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 081ba802
...@@ -1142,7 +1142,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { ...@@ -1142,7 +1142,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = {
.name = "sdcc1_apps_clk_src", .name = "sdcc1_apps_clk_src",
.parent_names = gcc_xo_gpll0_gpll4, .parent_names = gcc_xo_gpll0_gpll4,
.num_parents = 3, .num_parents = 3,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -1156,7 +1156,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = { ...@@ -1156,7 +1156,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = {
.name = "sdcc2_apps_clk_src", .name = "sdcc2_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -1170,7 +1170,7 @@ static struct clk_rcg2 sdcc3_apps_clk_src = { ...@@ -1170,7 +1170,7 @@ static struct clk_rcg2 sdcc3_apps_clk_src = {
.name = "sdcc3_apps_clk_src", .name = "sdcc3_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -1184,7 +1184,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = { ...@@ -1184,7 +1184,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = {
.name = "sdcc4_apps_clk_src", .name = "sdcc4_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
......
...@@ -1107,7 +1107,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { ...@@ -1107,7 +1107,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = {
.name = "sdcc1_apps_clk_src", .name = "sdcc1_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -1132,7 +1132,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = { ...@@ -1132,7 +1132,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = {
.name = "sdcc2_apps_clk_src", .name = "sdcc2_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
......
...@@ -872,7 +872,7 @@ static struct clk_init_data sdcc1_apps_clk_src_init = { ...@@ -872,7 +872,7 @@ static struct clk_init_data sdcc1_apps_clk_src_init = {
.name = "sdcc1_apps_clk_src", .name = "sdcc1_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}; };
static struct clk_rcg2 sdcc1_apps_clk_src = { static struct clk_rcg2 sdcc1_apps_clk_src = {
...@@ -894,7 +894,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = { ...@@ -894,7 +894,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = {
.name = "sdcc2_apps_clk_src", .name = "sdcc2_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -908,7 +908,7 @@ static struct clk_rcg2 sdcc3_apps_clk_src = { ...@@ -908,7 +908,7 @@ static struct clk_rcg2 sdcc3_apps_clk_src = {
.name = "sdcc3_apps_clk_src", .name = "sdcc3_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -922,7 +922,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = { ...@@ -922,7 +922,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = {
.name = "sdcc4_apps_clk_src", .name = "sdcc4_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
......
...@@ -912,7 +912,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { ...@@ -912,7 +912,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = {
.name = "sdcc1_apps_clk_src", .name = "sdcc1_apps_clk_src",
.parent_names = gcc_xo_gpll0_gpll4, .parent_names = gcc_xo_gpll0_gpll4,
.num_parents = 3, .num_parents = 3,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -938,7 +938,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = { ...@@ -938,7 +938,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = {
.name = "sdcc2_apps_clk_src", .name = "sdcc2_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -953,7 +953,7 @@ static struct clk_rcg2 sdcc3_apps_clk_src = { ...@@ -953,7 +953,7 @@ static struct clk_rcg2 sdcc3_apps_clk_src = {
.name = "sdcc3_apps_clk_src", .name = "sdcc3_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -968,7 +968,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = { ...@@ -968,7 +968,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = {
.name = "sdcc4_apps_clk_src", .name = "sdcc4_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
......
...@@ -460,7 +460,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { ...@@ -460,7 +460,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = {
.name = "sdcc1_apps_clk_src", .name = "sdcc1_apps_clk_src",
.parent_names = gcc_xo_gpll0_gpll4_gpll0_early_div, .parent_names = gcc_xo_gpll0_gpll4_gpll0_early_div,
.num_parents = 4, .num_parents = 4,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -505,7 +505,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = { ...@@ -505,7 +505,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = {
.name = "sdcc2_apps_clk_src", .name = "sdcc2_apps_clk_src",
.parent_names = gcc_xo_gpll0_gpll4, .parent_names = gcc_xo_gpll0_gpll4,
.num_parents = 3, .num_parents = 3,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -519,7 +519,7 @@ static struct clk_rcg2 sdcc3_apps_clk_src = { ...@@ -519,7 +519,7 @@ static struct clk_rcg2 sdcc3_apps_clk_src = {
.name = "sdcc3_apps_clk_src", .name = "sdcc3_apps_clk_src",
.parent_names = gcc_xo_gpll0_gpll4, .parent_names = gcc_xo_gpll0_gpll4,
.num_parents = 3, .num_parents = 3,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
...@@ -543,7 +543,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = { ...@@ -543,7 +543,7 @@ static struct clk_rcg2 sdcc4_apps_clk_src = {
.name = "sdcc4_apps_clk_src", .name = "sdcc4_apps_clk_src",
.parent_names = gcc_xo_gpll0, .parent_names = gcc_xo_gpll0,
.num_parents = 2, .num_parents = 2,
.ops = &clk_rcg2_ops, .ops = &clk_rcg2_floor_ops,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment