ソースを参照

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 <[email protected]>
Anvesh Jain P 1 年間 前
コミット
dbd9441b48
2 ファイル変更4 行追加2 行削除
  1. 2 0
      dsp/adsprpc_rpmsg.c
  2. 2 2
      dsp/adsprpc_shared.h

+ 2 - 0
dsp/adsprpc_rpmsg.c

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

+ 2 - 2
dsp/adsprpc_shared.h

@@ -83,9 +83,9 @@
 #define MDSP_DOMAIN_ID	(1)
 #define SDSP_DOMAIN_ID	(2)
 #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 */
 
 /* Default maximum sessions allowed per process */