2
0

0060-v6.9-clk-qcom-gcc-ipq6018-add-qdss_at-clock-needed-for-wi.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From fd712118aa1aa758da1fd1546b3f8a1b00e42cbc Mon Sep 17 00:00:00 2001
  2. From: Mantas Pucka <[email protected]>
  3. Date: Tue, 23 Jan 2024 11:26:09 +0200
  4. Subject: [PATCH] clk: qcom: gcc-ipq6018: add qdss_at clock needed for wifi
  5. operation
  6. Without it system hangs upon wifi firmware load. It should be enabled by
  7. remoteproc/wifi driver. Bindings already exist for it, so add it based
  8. on vendor code.
  9. Signed-off-by: Mantas Pucka <[email protected]>
  10. Link: https://lore.kernel.org/r/[email protected]
  11. Signed-off-by: Bjorn Andersson <[email protected]>
  12. ---
  13. drivers/clk/qcom/gcc-ipq6018.c | 17 +++++++++++++++++
  14. 1 file changed, 17 insertions(+)
  15. --- a/drivers/clk/qcom/gcc-ipq6018.c
  16. +++ b/drivers/clk/qcom/gcc-ipq6018.c
  17. @@ -3524,6 +3524,22 @@ static struct clk_branch gcc_prng_ahb_cl
  18. },
  19. };
  20. +static struct clk_branch gcc_qdss_at_clk = {
  21. + .halt_reg = 0x29024,
  22. + .clkr = {
  23. + .enable_reg = 0x29024,
  24. + .enable_mask = BIT(0),
  25. + .hw.init = &(struct clk_init_data){
  26. + .name = "gcc_qdss_at_clk",
  27. + .parent_hws = (const struct clk_hw *[]){
  28. + &qdss_at_clk_src.clkr.hw },
  29. + .num_parents = 1,
  30. + .flags = CLK_SET_RATE_PARENT,
  31. + .ops = &clk_branch2_ops,
  32. + },
  33. + },
  34. +};
  35. +
  36. static struct clk_branch gcc_qdss_dap_clk = {
  37. .halt_reg = 0x29084,
  38. .clkr = {
  39. @@ -4363,6 +4379,7 @@ static struct clk_regmap *gcc_ipq6018_cl
  40. [GCC_SYS_NOC_PCIE0_AXI_CLK] = &gcc_sys_noc_pcie0_axi_clk.clkr,
  41. [GCC_PCIE0_PIPE_CLK] = &gcc_pcie0_pipe_clk.clkr,
  42. [GCC_PRNG_AHB_CLK] = &gcc_prng_ahb_clk.clkr,
  43. + [GCC_QDSS_AT_CLK] = &gcc_qdss_at_clk.clkr,
  44. [GCC_QDSS_DAP_CLK] = &gcc_qdss_dap_clk.clkr,
  45. [GCC_QPIC_AHB_CLK] = &gcc_qpic_ahb_clk.clkr,
  46. [GCC_QPIC_CLK] = &gcc_qpic_clk.clkr,