[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/cp/ps/driver/inc/pub/drv_stub.h b/cp/ps/driver/inc/pub/drv_stub.h
new file mode 100644
index 0000000..77c2110
--- /dev/null
+++ b/cp/ps/driver/inc/pub/drv_stub.h
@@ -0,0 +1,301 @@
+/*******************************************************************************
+ * Copyright (C) 2007, ZTE Corporation.
+ *
+ * File Name: drv_stub.h
+ * File Mark:
+ * Description:
+ * Others:
+ * Version: 1.0
+ * Author: wangxia
+ * Date: 2008-2-22
+ * History 1:
+ * Date:
+ * Version:
+ * Author:
+ * Modification:
+ * History 2:
+ ********************************************************************************/
+
+#ifndef _DRV_STUB_H
+#define _DRV_STUB_H
+
+
+/****************************************************************************
+* Include files
+****************************************************************************/
+
+
+/****************************************************************************
+* Macros
+****************************************************************************/
+
+
+/****************************************************************************
+* Types
+****************************************************************************/
+
+/****************************************************************************************
+ ****************************************************************************************
+ * PCL configuration
+ ****************************************************************************************
+ ****************************************************************************************/
+
+/* Table of symbolic names for the pcl registers
+ keep in sync with PAD_pcl_registers.
+ ONLY APPEND TO THIS LIST NEVER REMOVE OR PUT ENTRIES INBETWEEN*/
+enum PAD_symbolic_names
+{
+ /*0*/
+ PAD_HS_DET,
+ PAD_ACC_DET,
+ PAD_ACC_PWR_EN,
+ PAD_PERF_MON,
+ PAD_HS_SENDEND,
+
+ /*5*/
+ PAD_FLIP_SENSE,
+ PAD_AP_RESET,
+ PAD_AP_CLK_REQ,
+ PAD_VCXO_EN,
+ PAD_MAIN_SUB,
+
+ /*10*/
+ PAD_LCD_RESET,
+ PAD_LCD_COMPIC_RESET,
+ PCD_LCD_COMPIC,
+ PAD_SMC_VZ_N,
+ PAD_SMC_RST,
+
+ /*15*/
+ PAD_USB_ID,
+ PAD_VBOOST_SEL,
+ PAD_VBOOST_EN,
+ GPS_GPIO_ASIC_STDBY,
+ GPS_GPIO_ASIC_RESET,
+
+ /*20*/
+ GPS_GPIO_ASIC_RFON,
+ PAD_CHK_EXT_32KHZ,
+ PAD_HS_AMP_SD,
+ PAD_HS_AMP_UD,
+ PAD_HS_AMP_CLK,
+
+ /*25*/
+ PAD_GDC_INT,
+ PAD_LED_RED,
+ PAD_LED_GREEN,
+ PAD_LED_BLUE,
+ PAD_IRDA_SD,
+
+ /*30*/
+ PAD_MMC_CMD,
+ PAD_MMC_DAT,
+ PAD_MMC_ROD_EN,
+ PAD_MMC_VDD_EN, /* VDD for MMC Interface */
+ PAD_SD_MMC_DAT1, /* DAT1 for extended SD/MMC */
+
+ /*35*/
+ PAD_SD_MMC_DAT2, /* DAT2 for extended SD/MMC */
+ PAD_SD_MMC_DAT3, /* DAT3 for extended SD/MMC */
+ PAD_CS_SD_MMC, /* RDE: CS for SD/MMC when using SPI Interface */
+ PAD_MTSR_SD_MMC, /* RDE: CS for SD/MMC when using SPI Interface */
+ PAD_MRST_SD_MMC, /* RDE: CS for SD/MMC when using SPI Interface */
+
+ /*40*/
+ PAD_CLK_SD_MMC, /* RDE: CS for SD/MMC when using SPI Interface */
+ PAD_USART1_RTS,
+ PAD_DIF_CD,
+ PAD_DIF_CS,
+ PAD_HS_MONO_STEREO,
+
+ /*45*/
+ PAD_CIF_RESET, /*reset for camera on MPE*/
+ PAD_CIF_PD, /*PowerDown of camera on MPE*/
+ PAD_SIM_VCC,
+ PAD_LEDPWM2, /* SUB LCD Backlight enable for NBG_HW_MPE: name corresponds to schematic name but PWM is not supported by HW */
+ PAD_I2S1_CLK0,
+
+ /*50*/
+ PAD_I2S1_RX,
+ PAD_I2S1_TX,
+ PAD_I2S1_WA0,
+ PAD_MMC_DETECT, /*MMC/SD card detection on MPE*/
+ PAD_CHG_VAL,
+
+ /*55*/
+ PAD_I2C_SCL,
+ PAD_I2C_SDA,
+ PAD_RST_FM,
+ PAD_FLASH,
+ PAD_VIBRATOR,
+
+ /*60*/
+ PAD_FM_AMP_SHDN,
+ PAD_CIF_RESET2, /* Reset for the second camera */
+ PAD_DIF_VD, /* Intensity setting via boost converter for both Displays on MPEU Userboard */
+ PAD_I2S2_CLK0,
+ PAD_I2S2_RX,
+
+ /*65*/
+ PAD_I2S2_TX,
+ PAD_I2S2_WA0,
+ PAD_BT_RST,
+ PAD_IRDA_TX,
+ PAD_IRDA_RX,
+
+ /*70*/
+ PAD_BB_TEST, /* Setting bb into test mode */
+ PAD_RESET_DET, /* Set on traps */
+ PAD_PP_PMU_EXT_ON, /* Wakeup ap pmu */
+ PAD_IPC_ACK,
+ PAD_USIF1_RTS,
+
+ /*75*/
+ PAD_USIF1_CTS,
+ PAD_USIF2_RTS,
+ PAD_USIF2_CTS,
+ PAD_USIF3_RTS,
+ PAD_USIF3_CTS,
+
+ /*80*/
+ PAD_MIC_INT,
+ PAD_AUD_AMP,
+ PAD_SP_AMP_SD,
+ PAD_SPK_RCV_SEL,
+ PAD_FM_BBP_SEL,
+
+ /*85*/
+ PAD_BT_TX, /* serial (USIF) port pins used for BT communication */
+ PAD_BT_RX,
+ PAD_BT_RTS,
+ PAD_BT_CTS,
+ PAD_UART0_RTS,
+
+ /*90*/
+ PAD_UART0_CTS,
+ PAD_UART1_RTS,
+ PAD_UART1_CTS,
+ PAD_UART1_RX,
+ PAD_UART1_TX,
+
+ /*95*/
+ PAD_I2S1_CLK1,
+ PAD_I2S1_WA1,
+ PAD_I2S2_CLK1,
+ PAD_I2S2_WA1,
+ PAD_USIF1_TXD,
+
+ /*100*/
+ PAD_USIF1_RXD,
+ PAD_WLAN_1V8_EN,
+ PAD_MMC2_VDD_EN,
+ PAD_MMC2_ROD_EN,
+ PAD_MMC2_CLK,
+
+ /*105*/
+ PAD_MMC2_CMD,
+ PAD_MMC2_DAT0,
+ PAD_MMC2_DAT1,
+ PAD_MMC2_DAT2,
+ PAD_MMC2_DAT3,
+
+ /*110*/
+ PAD_MMCI_IO_RESET,
+ PAD_AUD_SPK_AMP, /*Used for SPK_AMP for NX1*/
+ PAD_AUDIO_SELECT, /*Used for AUDIO_SELECT for NX1*/
+ PAD_EE_WP,
+ PAD_USIF1_CLK,
+
+ /*115*/
+ PAD_USIF1_HWAKE,
+ PAD_USIF1_MWAKE,
+ PAD_USIF1_RX,
+ PAD_USIF1_TX,
+ PAD_USIF2_CLK,
+
+ /*120*/
+ PAD_USIF2_HWAKE,
+ PAD_USIF2_MWAKE,
+ PAD_USIF2_RX,
+ PAD_USIF2_TX,
+ PAD_USIF3_CLK,
+
+ /*125*/
+ PAD_USIF3_HWAKE,
+ PAD_USIF3_MWAKE,
+ PAD_USIF3_RX,
+ PAD_USIF3_TX,
+ PAD_CAM_STBY_2,
+
+ /*130*/
+ PAD_CAM_RESET_2,
+ PAD_CAM_STBY_1,
+ PAD_CAM_RESET_1,
+ PAD_CHG_DET,
+ PAD_BAT_DET,
+
+ /*135*/
+ PAD_CHG_ON,
+ PAD_USB_ON,
+ BL_LED_DIM,
+ PAD_USB_DET,
+ PAD_USB_CHR_EN,
+
+ /*140*/
+ PAD_CIF_DATA0,
+ PAD_CIF_DATA1,
+ PAD_CIF_DATA2,
+ PAD_CIF_DATA3,
+ PAD_CIF_DATA4,
+
+ /*145*/
+ PAD_CIF_DATA5,
+ PAD_CIF_DATA6,
+ PAD_CIF_DATA7,
+ PAD_CIF_PCLK,
+ PAD_CIF_HSYNC,
+
+ /*150*/
+ PAD_CIF_VSYNC,
+ PAD_MODEM_READY,
+
+ PAD_LAST_ELEMENT /* always last element, used to verify PCL setup */
+ };
+
+/*IFX BB version*/
+typedef enum
+{
+ SYS_BB_VER_INVALID,
+ SYS_BB_VER_SGOLD,
+ SYS_BB_VER_SGOLDLITE,
+ SYS_BB_VER_SGOLD2,
+ SYS_BB_VER_SGOLD3,
+ SYS_BB_VER_SGOLDRADIO
+} bb_ver_enum;
+
+typedef enum
+{
+ SYS_BB_REV_INVALID,
+ SYS_BB_REV_10,
+ SYS_BB_REV_11,
+ SYS_BB_REV_11A,
+ SYS_BB_REV_11B,
+ SYS_BB_REV_12,
+ SYS_BB_REV_20
+} bb_rev_enum;
+/****************************************************************************
+* Constants
+****************************************************************************/
+
+/****************************************************************************
+* Global Variables
+****************************************************************************/
+
+/****************************************************************************
+* Function Prototypes
+****************************************************************************/
+
+
+
+#endif/*_DRV_STUB_H*/
+