History

remoteproc: wcss: add support for rpmsg communication

add glink and ssr subdevices for wcss rproc to enable rpmsg communication.

Sivaprakash Murugesan committed 6 years ago

Commit 8a226e21 parent a781e5a1 file · +6 −0Browse files

Unified · Split

drivers/remoteproc/qcom_q6v5_wcss.c+6−0
@@ -91,6 +91,9 @@ struct q6v5_wcss { · 90 unmodified lines
9191 phys_addr_t mem_reloc;
9292 void *mem_region;
9393 size_t mem_size;
94+
95+ struct qcom_rproc_glink glink_subdev;
96+ struct qcom_rproc_ssr ssr_subdev;
9497 };
9598
9699 static int q6v5_wcss_reset(struct q6v5_wcss *wcss)
@@ -557,6 +560,9 @@ static int q6v5_wcss_probe(struct platform_device *pdev) · 460 unmodified lines
557560 if (ret)
558561 goto free_rproc;
559562
563+ qcom_add_glink_subdev(rproc, &wcss->glink_subdev);
564+ qcom_add_ssr_subdev(rproc, &wcss->ssr_subdev, "q6wcss");
565+
560566 ret = rproc_add(rproc);
561567 if (ret)
562568 goto free_rproc;