0048-v6.6-clk-qcom-gcc-ipq6018-update-UBI32-PLL.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From f4f0c8acee0e41c5fbae7a7ad06087668ddce0d6 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Fri, 26 May 2023 21:08:54 +0200
  4. Subject: [PATCH] clk: qcom: gcc-ipq6018: update UBI32 PLL
  5. Update the UBI32 alpha PLL config to the latest values from the downstream
  6. QCA 5.4 kernel.
  7. Signed-off-by: Robert Marko <[email protected]>
  8. Signed-off-by: Bjorn Andersson <[email protected]>
  9. Link: https://lore.kernel.org/r/[email protected]
  10. ---
  11. drivers/clk/qcom/gcc-ipq6018.c | 7 ++++++-
  12. 1 file changed, 6 insertions(+), 1 deletion(-)
  13. --- a/drivers/clk/qcom/gcc-ipq6018.c
  14. +++ b/drivers/clk/qcom/gcc-ipq6018.c
  15. @@ -4143,15 +4143,20 @@ static struct clk_branch gcc_dcc_clk = {
  16. static const struct alpha_pll_config ubi32_pll_config = {
  17. .l = 0x3e,
  18. - .alpha = 0x57,
  19. + .alpha = 0x6667,
  20. .config_ctl_val = 0x240d6aa8,
  21. .config_ctl_hi_val = 0x3c2,
  22. + .config_ctl_val = 0x240d4828,
  23. + .config_ctl_hi_val = 0x6,
  24. .main_output_mask = BIT(0),
  25. .aux_output_mask = BIT(1),
  26. .pre_div_val = 0x0,
  27. .pre_div_mask = BIT(12),
  28. .post_div_val = 0x0,
  29. .post_div_mask = GENMASK(9, 8),
  30. + .alpha_en_mask = BIT(24),
  31. + .test_ctl_val = 0x1C0000C0,
  32. + .test_ctl_hi_val = 0x4000,
  33. };
  34. static const struct alpha_pll_config nss_crypto_pll_config = {