[Feature][T106_eSDK]update from T106-V2.01.01.02P56U06.AP.15.11_CAP.15.11.01 to T106-V2.01.01.02P56U06.AP.17.02_CAP.17.02.02 -- code

Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: Ib96b45ce27a9cc1e8e774c42334dfb86aa0da634
diff --git a/upstream/pub/include/infra/pub_debug_info.h b/upstream/pub/include/infra/pub_debug_info.h
index 10357aa..95a480f 100755
--- a/upstream/pub/include/infra/pub_debug_info.h
+++ b/upstream/pub/include/infra/pub_debug_info.h
@@ -6,62 +6,43 @@
 #define DEBUG_INFO_DEV_PATH "/dev/debug_info"
 
 /* AP²àºÍCAP²àµÄPS\KERNEL\DRIVER\FS\APP  ÒÔSTART~ENDÎªÇø¼ä£¬¸÷²¿·ÖÔ¤ÁôÁË100¸öID */
-#define MODULE_ID_PS_START			(1)
-#define MODULE_ID_PS_NAS			(1)
-#define MODULE_ID_PS_RRC			(2)
-#define MODULE_ID_PS_L2				(3)
-#define MODULE_ID_PS_UICC			(99)
-#define MODULE_ID_PS_END			(100)
 
-#define MODULE_ID_AP_KERNEL_START	(101)
-#define MODULE_ID_AP_KERNEL_END		(200)
+#define MODULE_ID_PS_NAS             ("ps_nas")
+#define MODULE_ID_PS_RRC             ("ps_rrc")
+#define MODULE_ID_PS_L2              ("ps_l2")
+#define MODULE_ID_PS_UICC            ("ps_uicc")
+#define MODULE_ID_AP_USB		     ("ap_usb")
+#define MODULE_ID_AP_REBOOT	         ("ap_reboot")
+#define MODULE_ID_AP_TSC		     ("ap_tsc")
+#define MODULE_ID_AP_PSM		     ("ap_psm")
+#define MODULE_ID_AP_NAND			 ("ap_nand")
+#define MODULE_ID_AP_MMC			 ("ap_mmc")
+#define MODULE_ID_AP_WIFI			 ("ap_wifi")
 
-#define MODULE_ID_CAP_KERNEL_START	(201)
-#define MODULE_ID_CAP_KERNEL_END	(300)
 
-#define MODULE_ID_AP_DRIVES_START	(301)
-#define MODULE_ID_AP_USB			(301)
-#define MODULE_ID_AP_REBOOT			(302)
-#define MODULE_ID_AP_TSC			(303)
-#define MODULE_ID_AP_PSM			(304)
-#define MODULE_ID_AP_NAND			(305)
-#define MODULE_ID_AP_MMC			(306)
-#define MODULE_ID_AP_WIFI			(307)
-#define MODULE_ID_AP_DRIVES_END		(400)
+#define MODULE_ID_CAP_USB			 ("cap_usb")
+#define MODULE_ID_CAP_TSC			 ("cap_tsc")
+#define MODULE_ID_CAP_PSM			 ("cap_psm")
+#define MODULE_ID_CAP_NAND			 ("cap_nand")
+#define MODULE_ID_CAP_SPI			 ("cap_spi")
+#define MODULE_ID_CAP_MMC			 ("cap_mmc")
+#define MODULE_ID_CAP_UART			 ("cap_uart")
+#define MODULE_ID_CAP_PM			 ("cap_pm")
 
-#define MODULE_ID_CAP_DRIVES_START	(401)
-#define MODULE_ID_CAP_USB			(401)
-#define MODULE_ID_CAP_TSC			(402)
-#define MODULE_ID_CAP_PSM			(403)
-#define MODULE_ID_CAP_NAND			(404)
-#define MODULE_ID_CAP_SPI			(405)
-#define MODULE_ID_CAP_MMC			(406)
-#define MODULE_ID_CAP_UART			(407)
-#define MODULE_ID_CAP_DRIVES_END	(500)
 
-#define MODULE_ID_AP_FS_START		(501)
-#define MODULE_ID_AP_JFFS2			(501)
-#define MODULE_ID_AP_FS_END			(600)
+#define MODULE_ID_AP_JFFS2           ("ap_jffs2")
+#define MODULE_ID_AP_FOTA            ("ap_fota")
+#define MODULE_ID_AP_FS_CHECK        ("ap_fs_check")
 
-#define MODULE_ID_CAP_FS_START		(601)
-#define MODULE_ID_CAP_FS_END		(700)
-
-#define MODULE_ID_AP_APP_START		(701)
-#define MODULE_ID_AP_FOTA			(701)
-#define MODULE_ID_AP_FS_CHECK		(702)
-#define MODULE_ID_AP_APP_END		(800)
-
-#define MODULE_ID_CAP_APP_START		(801)
-#define MODULE_ID_CAP_FOTA			(801)
-#define MODULE_ID_CAP_FS_CHECK		(802)
-#define MODULE_ID_CAP_APP_END		(900)
-
-#if defined(_USE_ZXIC_DEBUG_INFO) && !defined(CONFIG_SYSTEM_RECOVERY)
-int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args);
-int sc_debug_info_record(unsigned int id, const char *format, ...);
+#define MODULE_ID_CAP_FOTA			 ("cap_fota")
+#define MODULE_ID_CAP_FS_CHECK		 ("cap_fs_check")
+ 
+#if defined(_USE_ZXIC_DEBUG_INFO)
+int sc_debug_info_vrecord(char *id, const char *format, va_list args);
+int sc_debug_info_record(char *id, const char *format, ...);
 #else
-static inline int sc_debug_info_vrecord(unsigned int id, const char *format, va_list args) { return 0; }
-static inline int sc_debug_info_record(unsigned int id, const char *format, ...) { return 0; }
+static inline int sc_debug_info_vrecord(char *id, const char *format, va_list args) { return 0; }
+static inline int sc_debug_info_record(char *id, const char *format, ...) { return 0; }
 #endif
 
 #endif
\ No newline at end of file
diff --git a/upstream/pub/include/ps_phy/atipsevent.h b/upstream/pub/include/ps_phy/atipsevent.h
index 2bd5386..92e71e6 100755
--- a/upstream/pub/include/ps_phy/atipsevent.h
+++ b/upstream/pub/include/ps_phy/atipsevent.h
@@ -421,6 +421,7 @@
 #define AP_MMIA_ZCOPS_TEST_CNF_EV                (DWORD)(AP_MMIA_MM_RSP_EVENT + 25)

 #define AP_MMIA_TIMEZONE_IND_EV                  (DWORD)(AP_MMIA_MM_RSP_EVENT + 26)

 #define AP_MMIA_ZULRTIND_IND_EV                  (DWORD)(AP_MMIA_MM_RSP_EVENT + 27)

+#define AP_MMIA_ZPSABNORMAL_IND_EV               (DWORD)(AP_MMIA_MM_RSP_EVENT + 28)

 /* ========================================================================

    AP-MMIA CCÏà¹Ø²¿·ÖÏûÏ¢ºÅ

 ======================================================================== */

diff --git a/upstream/pub/project/zx297520v3/include/drv/NvParam_drv.h b/upstream/pub/project/zx297520v3/include/drv/NvParam_drv.h
index 66c6f6d..95c3158 100755
--- a/upstream/pub/project/zx297520v3/include/drv/NvParam_drv.h
+++ b/upstream/pub/project/zx297520v3/include/drv/NvParam_drv.h
@@ -214,8 +214,10 @@
 	UINT8			isUseTxDtmfDet;     

     UINT8			isUseRxMixData;

 	UINT8			isUseTxMixData;//12

-	UINT8			isUseEcall;

-    UINT8           reserved[19];//32-13

+	UINT8			isUseEcall; //13

+	UINT8 			isUseVoiceBuffer; //14  0 not use,1 use

+	UINT8 			selVoiceBufferType; //15 0 single core, 1 dual core	

+    UINT8           reserved[17];//32-15

 	

 }  T_Audio_NvFlag;

 

diff --git a/upstream/pub/project/zx297520v3/include/infra/ram_base_config_7520v3.h b/upstream/pub/project/zx297520v3/include/infra/ram_base_config_7520v3.h
index 6a1626d..edb3bfb 100755
--- a/upstream/pub/project/zx297520v3/include/infra/ram_base_config_7520v3.h
+++ b/upstream/pub/project/zx297520v3/include/infra/ram_base_config_7520v3.h
@@ -163,7 +163,7 @@
 #define DDR_BASE_OFF_CAP                (DDR_BASE_OFF_CAP_BUF + DDR_BASE_LEN_CAP_BUF)

 

 /* capºËµÄdtbµØÖ·¹©ubootºËcap kernelʹÓà */

-#define DDR_BASE_CAP_DTB_ADDR           (DDR_BASE_ADDR_CAP_BUF + (0x00100000UL>>CPU_SHIFT))

+#define DDR_BASE_CAP_DTB_ADDR           (DDR_BASE_ADDR_CAP_BUF + (0x00194000UL>>CPU_SHIFT))

 #else

 /* 42.75M£¬AP¹²ºË°æ±¾(´Ë´óСÊǰ´ÕÕº¬CAPºËµÄ64MÄÚ´æÅäÖö¨Ò壬¸Ãºê±ð´¦²»»á±»Ê¹ÓÃ) */

 #define DDR_BASE_ADDR_AP                (DDR_BASE_ADDR_RAMDUMP + DDR_BASE_LEN_RAMDUMP)

@@ -253,6 +253,13 @@
 #define TEE_SHARE_BUF_ADDR              (RAMDUMP_AP_TO_CAP_BUF_ADDR + RAMDUMP_AP_TO_CAP_BUF_LEN)

 #define TEE_SHARE_BUF_LEN               ((384 * 1024UL)>>CPU_SHIFT)

 

+/* psά²â¿Õ¼ä(Êý¾Ý + ¿ØÖÆ)¸´ÓÃAP_TO_CAPµÄramdump´æ´¢¿Õ¼ä */

+#define PS_DEBUG_INFO_LEN_ADDR          (RAMDUMP_AP_TO_CAP_BUF_ADDR + ((4 * 1024UL)>>CPU_SHIFT))

+#define PS_DEBUG_INFO_LEN_SIZE          ((4 * 1024UL)>>CPU_SHIFT)

+

+#define PS_DEBUG_INFO_ADDR              (PS_DEBUG_INFO_LEN_ADDR + PS_DEBUG_INFO_LEN_SIZE)

+#define PS_DEBUG_INFO_SIZE              ((64 * 1024UL)>>CPU_SHIFT)

+

 #define ICP_CAP_BUF_ADDR_PA             DDR_BASE_CAPBUF_ADDR_PA

 #define TOOL_CAP_BUF_ADDR_PA            (ICP_CAP_BUF_ADDR_PA + ICP_CAP_BUF_LEN)

 #define RINGBUF_CAP_TO_AP_ADDR_PA       (TOOL_CAP_BUF_ADDR_PA + TOOL_CAP_BUF_LEN)

@@ -262,6 +269,9 @@
 #define TOOL_ZSP_TO_CAP_LOG_ADDR_PA     (RINGBUF_AP_TO_CAP_ADDR_PA + RINGBUF_AP_TO_CAP_LEN)

 #define RAMDUMP_AP_TO_CAP_BUF_ADDR_PA   (TOOL_ZSP_TO_CAP_LOG_ADDR_PA + TOOL_ZSP_TO_CAP_LOG_LEN)

 #define TEE_SHARE_BUF_ADDR_PA           (RAMDUMP_AP_TO_CAP_BUF_ADDR_PA + RAMDUMP_AP_TO_CAP_BUF_LEN)

+

+#define PS_DEBUG_INFO_LEN_ADDR_PA       (RAMDUMP_AP_TO_CAP_BUF_ADDR_PA + ((4 * 1024UL)>>CPU_SHIFT))

+#define PS_DEBUG_INFO_ADDR_PA           (PS_DEBUG_INFO_LEN_ADDR_PA + PS_DEBUG_INFO_LEN_SIZE)

 #endif

 

 /* 7520V3оƬIRAM0ѹËõ£¬Ð­ÒéÕ»ÎïÀí²ã½»»¥¿Õ¼äÒÆ¶¯µ½DDR£¬¸´ÓÃRamdump¿Õ¼ä */