mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-05 14:53:45 +00:00
remoteproc: wcss: add support for rpmsg communication
add glink and ssr subdevices for wcss rproc to enable rpmsg communication. Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org> Link: https://lore.kernel.org/r/1588350492-4663-1-git-send-email-sivaprak@codeaurora.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
a781e5aa59
commit
8a226e2c71
1 changed files with 6 additions and 0 deletions
|
@ -91,6 +91,9 @@ struct q6v5_wcss {
|
||||||
phys_addr_t mem_reloc;
|
phys_addr_t mem_reloc;
|
||||||
void *mem_region;
|
void *mem_region;
|
||||||
size_t mem_size;
|
size_t mem_size;
|
||||||
|
|
||||||
|
struct qcom_rproc_glink glink_subdev;
|
||||||
|
struct qcom_rproc_ssr ssr_subdev;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int q6v5_wcss_reset(struct q6v5_wcss *wcss)
|
static int q6v5_wcss_reset(struct q6v5_wcss *wcss)
|
||||||
|
@ -557,6 +560,9 @@ static int q6v5_wcss_probe(struct platform_device *pdev)
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_rproc;
|
goto free_rproc;
|
||||||
|
|
||||||
|
qcom_add_glink_subdev(rproc, &wcss->glink_subdev);
|
||||||
|
qcom_add_ssr_subdev(rproc, &wcss->ssr_subdev, "q6wcss");
|
||||||
|
|
||||||
ret = rproc_add(rproc);
|
ret = rproc_add(rproc);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_rproc;
|
goto free_rproc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue