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

Commit 86c82302 authored by Amir Levy's avatar Amir Levy Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: support 31 pipes for IPA 3.0



IPA 3.0 supports more pipes than IPA 2.0,
This change adds support for IPA 3.0 additional
Pipes (now 31 instead 20).

Change-Id: I7eb4c8d4e36884c7a4cbfadaf8c222b823664484
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarNadine Toledano <nadinet@codeaurora.org>
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
Signed-off-by: default avatarGidon Studinski <gidons@codeaurora.org>
parent 24afa004
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2969,6 +2969,13 @@ static int ipa_init(const struct ipa_plat_drv_res *resource_p,
	IPADBG("IPA HW initialization sequence completed");

	ipa_ctx->ipa_num_pipes = ipa_get_num_pipes();
	if (ipa_ctx->ipa_num_pipes > IPA_MAX_NUM_PIPES) {
		IPAERR("IPA has more pipes then supported! has %d, max %d\n",
			ipa_ctx->ipa_num_pipes, IPA_MAX_NUM_PIPES);
		result = -ENODEV;
		goto fail_init_hw;
	}

	ipa_ctx->ctrl->ipa_sram_read_settings();
	IPADBG("SRAM, size: 0x%x, restricted bytes: 0x%x\n",
		ipa_ctx->smem_sz, ipa_ctx->smem_restricted_bytes);
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
#define IPA_COOKIE 0x57831603
#define MTU_BYTE 1500

#define IPA_MAX_NUM_PIPES 0x14
#define IPA_MAX_NUM_PIPES 31
#define IPA_SYS_DESC_FIFO_SZ 0x800
#define IPA_SYS_TX_DATA_DESC_FIFO_SZ 0x1000
#define IPA_LAN_RX_HEADER_LENGTH (2)