Merge "msm: ADSPRPC: Add channel for compute/modem DSP"

This commit is contained in:
Linux Build Service Account 2016-12-22 03:33:55 -08:00 committed by Gerrit - the friendly Code Review server
commit ba4fdd9852

View file

@ -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)
@ -263,6 +263,13 @@ static struct fastrpc_channel_ctx gcinfo[NUM_CHANNELS] = {
.link.link_info.edge = "lpass",
.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",
@ -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)