Browse Source

msm: ipa3: Add sram memory regions for ssdxnightjar target

Add sram memory regions for ssdxnightjar target.

Change-Id: I544c65cac9bf0c61b5ac004a89a7e053f260899b
Signed-off-by: Ashok Vuyyuru <[email protected]>
Ashok Vuyyuru 4 years ago
parent
commit
fd0b35711b
1 changed files with 95 additions and 0 deletions
  1. 95 0
      drivers/platform/msm/ipa/ipa_v3/ipa_utils.c

+ 95 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_utils.c

@@ -4977,6 +4977,99 @@ static struct ipa3_mem_partition ipa_5_0_mem_part = {
 	.end_ofst = 0x4d00,
 };
 
+static struct ipa3_mem_partition ipa_3_0_mem_part = {
+	.uc_ofst				= 0x0,
+	.uc_size				= 0x80,
+	.ofst_start				= 0x280,
+	.v4_flt_hash_ofst		= 0x288,
+	.v4_flt_hash_size		=  0x78,
+	.v4_flt_hash_size_ddr		= 0x4000,
+	.v4_flt_nhash_ofst		= 0x308,
+	.v4_flt_nhash_size		= 0x78,
+	.v4_flt_nhash_size_ddr		= 0x4000,
+	.v6_flt_hash_ofst		= 0x388,
+	.v6_flt_hash_size		= 0x78,
+	.v6_flt_hash_size_ddr		= 0x4000,
+	.v6_flt_nhash_ofst		= 0x408,
+	.v6_flt_nhash_size		= 0x78,
+	.v6_flt_nhash_size_ddr		= 0x4000,
+	.v4_rt_num_index		= 0xf,
+	.v4_modem_rt_index_lo		= 0x0,
+	.v4_modem_rt_index_hi		= 0x7,
+	.v4_apps_rt_index_lo		= 0x8,
+	.v4_apps_rt_index_hi		= 0xe,
+	.v4_rt_hash_ofst		= 0x488,
+	.v4_rt_hash_size		= 0x78,
+	.v4_rt_hash_size_ddr		= 0x4000,
+	.v4_rt_nhash_ofst		= 0x508,
+	.v4_rt_nhash_size		= 0x78,
+	.v4_rt_nhash_size_ddr		= 0x4000,
+	.v6_rt_num_index		= 0xf,
+	.v6_modem_rt_index_lo		= 0x0,
+	.v6_modem_rt_index_hi		= 0x7,
+	.v6_apps_rt_index_lo		= 0x8,
+	.v6_apps_rt_index_hi		= 0xe,
+	.v6_rt_hash_ofst		= 0x588,
+	.v6_rt_hash_size		= 0x78,
+	.v6_rt_hash_size_ddr		= 0x4000,
+	.v6_rt_nhash_ofst		= 0x608,
+	.v6_rt_nhash_size		= 0x78,
+	.v6_rt_nhash_size_ddr		= 0x4000,
+	.modem_hdr_ofst			= 0x688,
+	.modem_hdr_size			= 0x140,
+	.apps_hdr_ofst			= 0x7c8,
+	.apps_hdr_size			= 0x0,
+	.apps_hdr_size_ddr		= 0x800,
+	.modem_hdr_proc_ctx_ofst	= 0x7d0,
+	.modem_hdr_proc_ctx_size	= 0x200,
+	.apps_hdr_proc_ctx_ofst		= 0x9d0,
+	.apps_hdr_proc_ctx_size		= 0x200,
+	.apps_hdr_proc_ctx_size_ddr	= 0x0,
+	.modem_comp_decomp_ofst		= 0x0,
+	.modem_comp_decomp_size		= 0x0,
+	.modem_ofst			= 0xBD8,
+	.modem_size			= 0x1424,
+	.apps_v4_flt_hash_ofst		= 0x2000,
+	.apps_v4_flt_hash_size		= 0x0,
+	.apps_v4_flt_nhash_ofst		= 0x2000,
+	.apps_v4_flt_nhash_size		= 0x0,
+	.apps_v6_flt_hash_ofst		= 0x2000,
+	.apps_v6_flt_hash_size		= 0x0,
+	.apps_v6_flt_nhash_ofst		= 0x2000,
+	.apps_v6_flt_nhash_size		= 0x0,
+	.uc_info_ofst			= 0x80,
+	.uc_info_size			= 0x200,
+	.end_ofst			= 0x2000,
+	.apps_v4_rt_hash_ofst		= 0x2000,
+	.apps_v4_rt_hash_size		= 0x0,
+	.apps_v4_rt_nhash_ofst		= 0x2000,
+	.apps_v4_rt_nhash_size		= 0x0,
+	.apps_v6_rt_hash_ofst		= 0x2000,
+	.apps_v6_rt_hash_size		= 0x0,
+	.apps_v6_rt_nhash_ofst		= 0x2000,
+	.apps_v6_rt_nhash_size		= 0x0,
+	.uc_descriptor_ram_ofst		= 0x2000,
+	.uc_descriptor_ram_size		= 0x0,
+	.pdn_config_ofst		= 0x2000,
+	.pdn_config_size		= 0x0,
+	.stats_quota_q6_ofst		= 0x2000,
+	.stats_quota_q6_size		= 0x0,
+	.stats_quota_ap_ofst		= 0,
+	.stats_quota_ap_size		= 0,
+	.stats_tethering_ofst		= 0x2000,
+	.stats_tethering_size		= 0x0,
+	.stats_flt_v4_ofst		= 0x2000,
+	.stats_flt_v4_size		= 0x0,
+	.stats_flt_v6_ofst		= 0x2000,
+	.stats_flt_v6_size		= 0x0,
+	.stats_rt_v4_ofst		= 0x2000,
+	.stats_rt_v4_size		= 0x0,
+	.stats_rt_v6_ofst		= 0x2000,
+	.stats_rt_v6_size		= 0x0,
+	.stats_drop_ofst		= 0x2000,
+	.stats_drop_size		= 0x0,
+};
+
 const char *ipa_clients_strings[IPA_CLIENT_MAX] = {
 	__stringify(IPA_CLIENT_HSIC1_PROD),
 	__stringify(IPA_CLIENT_HSIC1_CONS),
@@ -7731,6 +7824,8 @@ int ipa3_init_mem_partition(enum ipa_hw_type type)
 	case IPA_HW_v2_5:
 	case IPA_HW_v2_6L:
 	case IPA_HW_v3_0:
+		ipa3_ctx->ctrl->mem_partition = &ipa_3_0_mem_part;
+		break;
 	case IPA_HW_v3_1:
 	case IPA_HW_v3_5:
 	case IPA_HW_v3_5_1: