msm: adsprpc: Add support for cdsp1 remoteproc

The fastrpc driver supports 4 remoteproc. There are some
products such as automotive which support cdsp1 remoteproc.
Add changes to support cdsp1 remoteproc.

Change-Id: I3a9b221c53ccd4331de089ab38ccd6d715db4bf4
Signed-off-by: Anvesh Jain P <quic_ajainp@quicinc.com>
This commit is contained in:
Anvesh Jain P
2024-04-01 12:13:29 +05:30
parent 8f36f9526b
commit dbd9441b48
2 changed files with 4 additions and 2 deletions

View File

@@ -61,6 +61,8 @@ static inline int get_cid_from_rpdev(struct rpmsg_device *rpdev)
cid = SDSP_DOMAIN_ID; cid = SDSP_DOMAIN_ID;
else if (!strcmp(label, "mdsp")) else if (!strcmp(label, "mdsp"))
cid = MDSP_DOMAIN_ID; cid = MDSP_DOMAIN_ID;
else if (!strcmp(label, "cdsp1"))
cid = CDSP1_DOMAIN_ID;
return cid; return cid;
} }

View File

@@ -83,9 +83,9 @@
#define MDSP_DOMAIN_ID (1) #define MDSP_DOMAIN_ID (1)
#define SDSP_DOMAIN_ID (2) #define SDSP_DOMAIN_ID (2)
#define CDSP_DOMAIN_ID (3) #define CDSP_DOMAIN_ID (3)
#define MAX_DOMAIN_ID CDSP_DOMAIN_ID #define CDSP1_DOMAIN_ID (4)
#define NUM_CHANNELS 4 /* adsp, mdsp, slpi, cdsp*/ #define NUM_CHANNELS 5 /* adsp, mdsp, slpi, cdsp, cdsp1*/
#define NUM_SESSIONS 14 /* max 11 compute, 3 cpz */ #define NUM_SESSIONS 14 /* max 11 compute, 3 cpz */
/* Default maximum sessions allowed per process */ /* Default maximum sessions allowed per process */