Skip to content

Commit e0e6373

Browse files
Kathiravan Thirumoorthyandersson
authored andcommitted
clk: qcom: apss-ipq6018: add the GPLL0 clock also as clock provider
While the kernel is booting up, APSS PLL will be running at 800MHz with GPLL0 as source. Once the cpufreq driver is available, APSS PLL will be configured and select the rate based on the opp table and the source will be changed to APSS_PLL_EARLY. Without this patch, CPU Freq driver reports that CPU is running at 24MHz instead of the 800MHz. Reviewed-by: Konrad Dybcio <[email protected]> Tested-by: Robert Marko <[email protected]> Signed-off-by: Kathiravan Thirumoorthy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 5635ef0 commit e0e6373

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/clk/qcom/apss-ipq6018.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,19 @@
2323

2424
enum {
2525
P_XO,
26+
P_GPLL0,
2627
P_APSS_PLL_EARLY,
2728
};
2829

2930
static const struct clk_parent_data parents_apcs_alias0_clk_src[] = {
3031
{ .fw_name = "xo" },
32+
{ .fw_name = "gpll0" },
3133
{ .fw_name = "pll" },
3234
};
3335

3436
static const struct parent_map parents_apcs_alias0_clk_src_map[] = {
3537
{ P_XO, 0 },
38+
{ P_GPLL0, 4 },
3639
{ P_APSS_PLL_EARLY, 5 },
3740
};
3841

0 commit comments

Comments
 (0)