0027-v6.7-clk-qcom-apss-ipq6018-add-the-GPLL0-clock-also-as-cl.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From c917237a7cb17b97cc48e073881a9873f3caeaa2 Mon Sep 17 00:00:00 2001
  2. From: Kathiravan Thirumoorthy <[email protected]>
  3. Date: Thu, 14 Sep 2023 12:29:57 +0530
  4. Subject: [PATCH] clk: qcom: apss-ipq6018: add the GPLL0 clock also as clock
  5. provider
  6. While the kernel is booting up, APSS PLL will be running at 800MHz with
  7. GPLL0 as source. Once the cpufreq driver is available, APSS PLL will be
  8. configured and select the rate based on the opp table and the source will
  9. be changed to APSS_PLL_EARLY.
  10. Without this patch, CPU Freq driver reports that CPU is running at 24MHz
  11. instead of the 800MHz.
  12. Reviewed-by: Konrad Dybcio <[email protected]>
  13. Tested-by: Robert Marko <[email protected]>
  14. Signed-off-by: Kathiravan Thirumoorthy <[email protected]>
  15. ---
  16. drivers/clk/qcom/apss-ipq6018.c | 3 +++
  17. 1 file changed, 3 insertions(+)
  18. --- a/drivers/clk/qcom/apss-ipq6018.c
  19. +++ b/drivers/clk/qcom/apss-ipq6018.c
  20. @@ -20,16 +20,19 @@
  21. enum {
  22. P_XO,
  23. + P_GPLL0,
  24. P_APSS_PLL_EARLY,
  25. };
  26. static const struct clk_parent_data parents_apcs_alias0_clk_src[] = {
  27. { .fw_name = "xo" },
  28. + { .fw_name = "gpll0" },
  29. { .fw_name = "pll" },
  30. };
  31. static const struct parent_map parents_apcs_alias0_clk_src_map[] = {
  32. { P_XO, 0 },
  33. + { P_GPLL0, 4 },
  34. { P_APSS_PLL_EARLY, 5 },
  35. };