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