summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-12-22 03:33:55 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-22 03:33:54 -0800
commitba4fdd9852b5a61b6a22385a9e6cab9ea78346b9 (patch)
treecf4680b7a9e1c26e102207ff4a56427236a76721
parente379f786aa82c6c94b95cbb06befba802731019a (diff)
parent0bd3c17c6233d588f18fb40d23cf841f1d910b6f (diff)
Merge "msm: ADSPRPC: Add channel for compute/modem DSP"
-rw-r--r--drivers/char/adsprpc.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c
index 7767086df849..c056ad9625b1 100644
--- a/drivers/char/adsprpc.c
+++ b/drivers/char/adsprpc.c
@@ -58,7 +58,7 @@
#define RPC_TIMEOUT (5 * HZ)
#define BALIGN 128
-#define NUM_CHANNELS 3 /*1 adsp, 1 mdsp*/
+#define NUM_CHANNELS 4 /* adsp,sdsp,mdsp,cdsp */
#define NUM_SESSIONS 9 /*8 compute, 1 cpz*/
#define IS_CACHE_ALIGNED(x) (((x) & ((L1_CACHE_BYTES)-1)) == 0)
@@ -264,6 +264,13 @@ static struct fastrpc_channel_ctx gcinfo[NUM_CHANNELS] = {
.link.link_info.transport = "smem",
},
{
+ .name = "mdsprpc-smd",
+ .subsys = "modem",
+ .channel = SMD_APPS_MODEM,
+ .link.link_info.edge = "mpss",
+ .link.link_info.transport = "smem",
+ },
+ {
.name = "sdsprpc-smd",
.subsys = "dsps",
.channel = SMD_APPS_DSPS,
@@ -271,6 +278,12 @@ static struct fastrpc_channel_ctx gcinfo[NUM_CHANNELS] = {
.link.link_info.transport = "smem",
.vmid = VMID_SSC_Q6,
},
+ {
+ .name = "cdsprpc-smd",
+ .subsys = "cdsp",
+ .link.link_info.edge = "cdsp",
+ .link.link_info.transport = "smem",
+ },
};
static void fastrpc_buf_free(struct fastrpc_buf *buf, int cache)