2
0

0136-remoteproc-qcom-wcss-populate-driver-data-for-IPQ601.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From 9dd19a9ae36bc60d58287d0c52e53024d484e64d Mon Sep 17 00:00:00 2001
  2. From: Gokul Sriram Palanisamy <[email protected]>
  3. Date: Fri, 29 Jan 2021 22:41:59 +0530
  4. Subject: [PATCH 2/3] remoteproc: qcom: wcss: populate driver data for IPQ6018
  5. Populate hardcoded param using driver data for IPQ6018 SoCs.
  6. Signed-off-by: Gokul Sriram Palanisamy <[email protected]>
  7. ---
  8. drivers/remoteproc/qcom_q6v5_wcss.c | 19 +++++++++++++++++--
  9. 1 file changed, 17 insertions(+), 2 deletions(-)
  10. --- a/drivers/remoteproc/qcom_q6v5_wcss.c
  11. +++ b/drivers/remoteproc/qcom_q6v5_wcss.c
  12. @@ -969,7 +969,7 @@ static int q6v5_alloc_memory_region(stru
  13. return 0;
  14. }
  15. -static int ipq8074_init_clock(struct q6v5_wcss *wcss)
  16. +static int ipq_init_clock(struct q6v5_wcss *wcss)
  17. {
  18. int ret;
  19. @@ -1176,7 +1176,7 @@ static void q6v5_wcss_remove(struct plat
  20. }
  21. static const struct wcss_data wcss_ipq8074_res_init = {
  22. - .init_clock = ipq8074_init_clock,
  23. + .init_clock = ipq_init_clock,
  24. .q6_firmware_name = "IPQ8074/q6_fw.mdt",
  25. .m3_firmware_name = "IPQ8074/m3_fw.mdt",
  26. .crash_reason_smem = WCSS_CRASH_REASON,
  27. @@ -1190,6 +1190,20 @@ static const struct wcss_data wcss_ipq80
  28. .need_auto_boot = false,
  29. };
  30. +static const struct wcss_data wcss_ipq6018_res_init = {
  31. + .init_clock = ipq_init_clock,
  32. + .q6_firmware_name = "IPQ6018/q6_fw.mdt",
  33. + .m3_firmware_name = "IPQ6018/m3_fw.mdt",
  34. + .crash_reason_smem = WCSS_CRASH_REASON,
  35. + .aon_reset_required = true,
  36. + .wcss_q6_reset_required = true,
  37. + .bcr_reset_required = false,
  38. + .ssr_name = "q6wcss",
  39. + .ops = &q6v5_wcss_ipq8074_ops,
  40. + .requires_force_stop = true,
  41. + .need_mem_protection = true,
  42. +};
  43. +
  44. static const struct wcss_data wcss_qcs404_res_init = {
  45. .init_clock = qcs404_init_clock,
  46. .init_regulator = qcs404_init_regulator,
  47. @@ -1209,6 +1223,7 @@ static const struct wcss_data wcss_qcs40
  48. static const struct of_device_id q6v5_wcss_of_match[] = {
  49. { .compatible = "qcom,ipq8074-wcss-pil", .data = &wcss_ipq8074_res_init },
  50. + { .compatible = "qcom,ipq6018-wcss-pil", .data = &wcss_ipq6018_res_init },
  51. { .compatible = "qcom,qcs404-wcss-pil", .data = &wcss_qcs404_res_init },
  52. { },
  53. };