Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bd3c17c authored by Sathish Ambley's avatar Sathish Ambley
Browse files

msm: ADSPRPC: Add channel for compute/modem DSP



Add new channel to allow for communication to be established
between application and compute/modem DSP to enable RPC calls to
be made.

Change-Id: I98e443e894d81bcd815418f2a79723db14d87ce4
Signed-off-by: default avatarSathish Ambley <sathishambley@codeaurora.org>
parent 85d7e134
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -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)