请问谁有mt6163的rf文件,能否共享下 ;
时间:10-02
整理:3721RD
点击:
智能机上编译Modem.img里面需要的rf文件 ;多谢了。
你用我的试试吧
- /*******************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2001
- *
- *******************************************************************************/
- /*******************************************************************************
- *
- * Filename:
- * ---------
- * l1d_custom_rf.h
- *
- * Project:
- * --------
- * MT6575
- *
- * Description:
- * ------------
- * MT6163 RF Definition of Constants
- *
- * Author:
- * -------
- *
- *
- *==============================================================================
- *******************************************************************************/
- #ifndef _L1D_CUSTOM_RF_H_
- #define _L1D_CUSTOM_RF_H_
- /* --------------------------------------------------------------------------- */
- #if !defined(MT6163_2G_RF)
- #error "rf files mismatch with compile option!"
- #endif
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* Definitions of Event Timing */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ //#define SKY77344_21
- /*MT6163*/ //#define RF9810_RF1131 /* 2G TXM: RF9810, ASM: RF1131. Use BSI to send 3 BPI data */
- /*MT6163*/ //#define RF9810_RF1131_V1_1 /* 2G TXM: RF9810, ASM: RF1131. Use 3 more BPI OR gates */
- /*MT6163*/#define SKY_77569
- /*MT6163*/ #define QB_RX_FENA_2_FSYNC 64 /* this value shall be 4N+0 */
- /*MT6163*/ #define QB_RX_FSYNC_2_FENA 0
- /*MT6163*/ #define QB_TX_FENA_2_FSYNC 20
- /*MT6163*/ #define QB_TX_FSYNC_2_FENA 26
- /*MT6163*/
- /*MT6163*/ #if defined(SKY77344_21) || defined(RF9810_RF1131) || defined(RF9810_RF1131_V1_1)||defined(SKY_77569)
- /*MT6163*/ #define QB_SR0 131 /* SR0 should be smaller than 134 to avoid 2G/3G RF conflict */
- /*MT6163*/ #define QB_SR1 98
- /*MT6163*/ #define QB_SR2 93 /* SR2 should be larger than QB_RX_FENA_2_FSYNC */
- /*MT6163*/ #define QB_SR2M 22
- /*MT6163*/ #define QB_SR3 0 /* SR3 should be smaller than 6 to avoid 2G/3G RF conflict */
- /*MT6163*/ #define QB_PR1 132 /* PR1 should be smaller than 134 to avoid 2G/3G RF conflict */
- /*MT6163*/ #define QB_PR2 35
- /*MT6163*/ #define QB_PR3 5 /* PR3 should be smaller than 6 to avoid 2G/3G RF conflict */
- /*MT6163*/ #define QB_ST0 332
- /*MT6163*/ #define QB_ST2 279
- /*MT6163*/ #define QB_ST1 247
- /*MT6163*/ #define QB_ST2B 30 /* ST2B should be larger than QB_TX_FENA_2_FSYNC */
- /*MT6163*/ #define QB_ST3 37 /* ST3 should be larger than QB_TX_FSYNC_2_FENA */
- /*MT6163*/ #define QB_PT1 314
- /*MT6163*/ #define QB_PT2 -1
- /*MT6163*/ #define QB_PT2B -6
- /*MT6163*/ #define QB_PT3 28
- /*MT6163*/ #define QB_ST2M_G8 3
- /*MT6163*/ #define QB_ST2M_8G 3
- /*MT6163*/ #define QB_PT2M1_G8 20
- /*MT6163*/ #define QB_PT2M2_G8 -2
- /*MT6163*/ #if IS_DYNAMIC_G_E_TXWIN_POSITION_SUPPORT
- /*MT6163*/ #define QB_PT2M1_8G 8
- /*MT6163*/ #else
- /*MT6163*/ #define QB_PT2M1_8G 15
- /*MT6163*/ #endif
- /*MT6163*/ #define QB_PT2M2_8G 2
- /*MT6163*/ #endif /* defined(SKY77344_21) || defined(RF9810_RF1131) || defined(RF9810_RF1131_V1_1) */
- /*MT6163*/
- /*MT6163*/ #define QB_APCON 11
- /*MT6163*/ #define QB_APCMID 18
- /*MT6163*/ #define QB_APCOFF 13
- /*MT6163*/ #define QB_APCDACON 0
- /*MT6163*/
- /*MT6163*/ #if IS_DYNAMIC_G_E_TXWIN_POSITION_SUPPORT || (!IS_EPSK_TX_SUPPORT)
- /*MT6163*/ #define TX_PROPAGATION_DELAY 50
- /*MT6163*/ #else
- /*MT6163*/ #define TX_PROPAGATION_DELAY 46
- /*MT6163*/ #endif
- /*MT6163*/
- /*MT6163*/ #ifdef SKY77344_21
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* Definitions of BPI Data for SKY77344_21 */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* PRCB : bit pin */
- /*MT6163*/ /* 0 ASM_A085GT VC1 */
- /*MT6163*/ /* 1 ASM_A085GT VC2 */
- /*MT6163*/ /* 2 ASM_A085GT VC3 */
- /*MT6163*/ /* 3 ASM_A085GT VC4 */
- /*MT6163*/ /* 4 ASM_A085GT VDD */
- /*MT6163*/ /* 5 PA_ENABLE */
- /*MT6163*/ /* 6 PA_BAND_SWITCH */
- /*MT6163*/ /* 7 PA_MODE(1:E; 0:G) */
- /*MT6163*/ /* 8 not used */
- /*MT6163*/ /* 9 used as GSM_ERR_DET_ID */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ #define GSM_ERR_DET_ID 9
- /*MT6163*/ #define GSM_ERR_DET (0x1<<GSM_ERR_DET_ID)
- /*MT6163*/
- /*MT6163*/ #define PDATA_GMSK 0x000
- /*MT6163*/ #define PDATA_8PSK 0x080
- /*MT6163*/
- /*MT6163*/ #define PDATA_GSM850_PR1 (0x010|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM850_PR2 (0x010|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM850_PR3 (0x000 )
- /*MT6163*/ #define PDATA_GSM_PR1 (0x014|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PR2 (0x014|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PR3 (0x000 )
- /*MT6163*/ #define PDATA_DCS_PR1 (0x016|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PR2 (0x016|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PR3 (0x000 )
- /*MT6163*/ #define PDATA_PCS_PR1 (0x012|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PR2 (0x012|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PR3 (0x000 )
- /*MT6163*/ #define PDATA_GSM850_PT1 (0x010|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM850_PT2 (0x030|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM850_PT2B (0x033|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM850_PT3 (0x000 )
- /*MT6163*/ #define PDATA_GSM850_PT2M1_G8 (0x033|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM850_PT2M2_G8 (0x0B3|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM850_PT2M1_8G (0x000|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM850_PT2M2_8G (0x033|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PT1 (0x010|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PT2 (0x030|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PT2B (0x033|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PT3 (0x000 )
- /*MT6163*/ #define PDATA_GSM_PT2M1_G8 (0x033|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PT2M2_G8 (0x0B3|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PT2M1_8G (0x000|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_GSM_PT2M2_8G (0x033|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PT1 (0x010|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PT2 (0x070|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PT2B (0x071|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PT3 (0x000 )
- /*MT6163*/ #define PDATA_DCS_PT2M1_G8 (0x071|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PT2M2_G8 (0x0F1|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PT2M1_8G (0x040|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_DCS_PT2M2_8G (0x071|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PT1 (0x010|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PT2 (0x070|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PT2B (0x071|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PT3 (0x000 )
- /*MT6163*/ #define PDATA_PCS_PT2M1_G8 (0x071|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PT2M2_G8 (0x0F1|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PT2M1_8G (0x040|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_PCS_PT2M2_8G (0x071|GSM_ERR_DET)
- /*MT6163*/ #define PDATA_INIT (0x000 )
- /*MT6163*/ #define PDATA_IDLE (0x000 )
- /*MT6163*/ #endif /* SKY77344_21 */
- /*MT6163*/
- /*MT6163*/ #ifdef RF9810_RF1131
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* Definitions of BPI Data for RF9810 */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* PRCB : bit pin */
- /*MT6163*/ /* 0 TXEN (AST SPI_GPO10) */
- /*MT6163*/ /* 1 CTRL0 (AST SPI_GPO 6) */
- /*MT6163*/ /* 2 CTRL1 (AST SPI_GPO 7) */
- /*MT6163*/ /* 3 CTRL2 (AST SPI_GPO 8) */
- /*MT6163*/ /* 4 not used (AST SPI_GPO 9) */
- /*MT6163*/ /* 5 not used */
- /*MT6163*/ /* 6 not used */
- /*MT6163*/ /* 7 Dual-Mode Sync */
- /*MT6163*/ /* 8 not used */
- /*MT6163*/ /* 9 GSM_ERR_DET_ID */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ #define GSM_ERR_DET_ID 9
- /*MT6163*/ #define GSM_ERR_DET (0x1<<GSM_ERR_DET_ID)
- /*MT6163*/
- /*MT6163*/ #define PDATA_GMSK 0x004
- /*MT6163*/ #define PDATA_8PSK 0x000
- /*MT6163*/
- /*MT6163*/ #define PDATA_GSM850_PR1 (0x002|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PR2 (0x002|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PR3 (0x000 )
- /*MT6163*/ #define PDATA_GSM_PR1 (0x002|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PR2 (0x002|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PR3 (0x000 )
- /*MT6163*/ #define PDATA_DCS_PR1 (0x006|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PR2 (0x006|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PR3 (0x000 )
- /*MT6163*/ #define PDATA_PCS_PR1 (0x006|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PR2 (0x006|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PR3 (0x000 )
- /*MT6163*/ #define PDATA_GSM850_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT2 (0x001|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT2B (0x001|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT3 (0x000 )
- /*MT6163*/ #define PDATA_GSM850_PT2M1_G8 (0x001|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M2_G8 (0x001|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M1_8G (0x001|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M2_8G (0x001|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT2 (0x001|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT2B (0x001|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT3 (0x000 )
- /*MT6163*/ #define PDATA_GSM_PT2M1_G8 (0x001|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM_PT2M2_G8 (0x001|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM_PT2M1_8G (0x001|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM_PT2M2_8G (0x001|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_DCS_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT2 (0x003|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT2B (0x003|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT3 (0x000 )
- /*MT6163*/ #define PDATA_DCS_PT2M1_G8 (0x003|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_DCS_PT2M2_G8 (0x003|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_DCS_PT2M1_8G (0x003|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_DCS_PT2M2_8G (0x003|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_PCS_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT2 (0x003|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT2B (0x003|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT3 (0x000 )
- /*MT6163*/ #define PDATA_PCS_PT2M1_G8 (0x003|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_PCS_PT2M2_G8 (0x003|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_PCS_PT2M1_8G (0x003|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_PCS_PT2M2_8G (0x003|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_INIT (0x000 )
- /*MT6163*/ #define PDATA_IDLE (0x000 )
- /*MT6163*/
- /*MT6163*/ #if IS_BSI_TRIG_OFFCHIP_BPI_SUPPORT
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* Definitions of Offchip BPI Data for RF1131 */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* PRCB : bit pin */
- /*MT6163*/ /* 0 not used (AST SPI_GPO 0) */
- /*MT6163*/ /* 1 not used (AST SPI_GPO 1) */
- /*MT6163*/ /* 2 not used (AST SPI_GPO 2) */
- /*MT6163*/ /* 3 not used (AST SPI_GPO 3) */
- /*MT6163*/ /* 4 VC1 (AST SPI_GPO 4) */
- /*MT6163*/ /* 5 not used (AST SPI_GPO 5) */
- /*MT6163*/ /* 6 VC2 (AST SPI_GPO11) */
- /*MT6163*/ /* 7 VC3 (AST SPI_GPO12) */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ #define PDATA_GSM850_SR0 0x10
- /*MT6163*/ #define PDATA_GSM850_SR3 0x00
- /*MT6163*/ #define PDATA_GSM850_ST0 0x10
- /*MT6163*/ #define PDATA_GSM850_ST3 0x00
- /*MT6163*/ #define PDATA_GSM_SR0 0x10
- /*MT6163*/ #define PDATA_GSM_SR3 0x00
- /*MT6163*/ #define PDATA_GSM_ST0 0x10
- /*MT6163*/ #define PDATA_GSM_ST3 0x00
- /*MT6163*/ #define PDATA_DCS_SR0 0x10
- /*MT6163*/ #define PDATA_DCS_SR3 0x00
- /*MT6163*/ #define PDATA_DCS_ST0 0x10
- /*MT6163*/ #define PDATA_DCS_ST3 0x00
- /*MT6163*/ #define PDATA_PCS_SR0 0x10
- /*MT6163*/ #define PDATA_PCS_SR3 0x00
- /*MT6163*/ #define PDATA_PCS_ST0 0x10
- /*MT6163*/ #define PDATA_PCS_ST3 0x00
- /*MT6163*/ #endif /* IS_BSI_TRIG_OFFCHIP_BPI_SUPPORT */
- /*MT6163*/ #endif /* RF9810_RF1131 */
- /*MT6163*/
- /*MT6163*/ #ifdef RF9810_RF1131_V1_1
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* Definitions of BPI Data for RF9810 & RF1131 */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* PRCB : bit pin */
- /*MT6163*/ /* 0 TXEN (AST SPI_GPO10) */
- /*MT6163*/ /* 1 CTRL0 (AST SPI_GPO 6) */
- /*MT6163*/ /* 2 CTRL1 (AST SPI_GPO 7) */
- /*MT6163*/ /* 3 CTRL2 (AST SPI_GPO 8) */
- /*MT6163*/ /* 4 VC1 (AST SPI_GPO16) */
- /*MT6163*/ /* 5 VC2 (AST SPI_GPO17) */
- /*MT6163*/ /* 6 VC3 (AST SPI_GPO18) */
- /*MT6163*/ /* 7 Dual-Mode Sync */
- /*MT6163*/ /* 8 not used */
- /*MT6163*/ /* 9 GSM_ERR_DET_ID */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ #define GSM_ERR_DET_ID 9
- /*MT6163*/ #define GSM_ERR_DET (0x1<<GSM_ERR_DET_ID)
- /*MT6163*/
- /*MT6163*/ #define PDATA_GMSK 0x004
- /*MT6163*/ #define PDATA_8PSK 0x000
- /*MT6163*/
- /*MT6163*/ #define PDATA_GSM850_PR1 (0x012|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PR2 (0x012|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PR3 (0x000 )
- /*MT6163*/ #define PDATA_GSM_PR1 (0x012|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PR2 (0x012|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PR3 (0x000 )
- /*MT6163*/ #define PDATA_DCS_PR1 (0x016|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PR2 (0x016|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PR3 (0x000 )
- /*MT6163*/ #define PDATA_PCS_PR1 (0x016|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PR2 (0x016|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PR3 (0x000 )
- /*MT6163*/ #define PDATA_GSM850_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT2 (0x011|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT2B (0x011|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT3 (0x000 )
- /*MT6163*/ #define PDATA_GSM850_PT2M1_G8 (0x011|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M2_G8 (0x011|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M1_8G (0x011|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M2_8G (0x011|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT2 (0x011|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT2B (0x011|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT3 (0x000 )
- /*MT6163*/ #define PDATA_GSM_PT2M1_G8 (0x011|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM_PT2M2_G8 (0x011|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM_PT2M1_8G (0x011|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM_PT2M2_8G (0x011|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_DCS_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT2 (0x013|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT2B (0x013|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT3 (0x000 )
- /*MT6163*/ #define PDATA_DCS_PT2M1_G8 (0x013|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_DCS_PT2M2_G8 (0x013|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_DCS_PT2M1_8G (0x013|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_DCS_PT2M2_8G (0x013|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_PCS_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT2 (0x013|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT2B (0x013|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT3 (0x000 )
- /*MT6163*/ #define PDATA_PCS_PT2M1_G8 (0x013|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_PCS_PT2M2_G8 (0x013|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_PCS_PT2M1_8G (0x013|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_PCS_PT2M2_8G (0x013|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_INIT (0x000 )
- /*MT6163*/ #define PDATA_IDLE (0x000 )
- /*MT6163*/
- /*MT6163*/ #if IS_BSI_TRIG_OFFCHIP_BPI_SUPPORT
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* Definitions of Offchip BPI Data */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* PRCB : bit pin */
- /*MT6163*/ /* 0 not used (AST SPI_GPO 0) */
- /*MT6163*/ /* 1 not used (AST SPI_GPO 1) */
- /*MT6163*/ /* 2 not used (AST SPI_GPO 2) */
- /*MT6163*/ /* 3 not used (AST SPI_GPO 3) */
- /*MT6163*/ /* 4 not used (AST SPI_GPO 4) */
- /*MT6163*/ /* 5 not used (AST SPI_GPO 5) */
- /*MT6163*/ /* 6 not used (AST SPI_GPO11) */
- /*MT6163*/ /* 7 not used (AST SPI_GPO12) */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ #define PDATA_GSM850_SR0 0x00
- /*MT6163*/ #define PDATA_GSM850_SR3 0x00
- /*MT6163*/ #define PDATA_GSM850_ST0 0x00
- /*MT6163*/ #define PDATA_GSM850_ST3 0x00
- /*MT6163*/ #define PDATA_GSM_SR0 0x00
- /*MT6163*/ #define PDATA_GSM_SR3 0x00
- /*MT6163*/ #define PDATA_GSM_ST0 0x00
- /*MT6163*/ #define PDATA_GSM_ST3 0x00
- /*MT6163*/ #define PDATA_DCS_SR0 0x00
- /*MT6163*/ #define PDATA_DCS_SR3 0x00
- /*MT6163*/ #define PDATA_DCS_ST0 0x00
- /*MT6163*/ #define PDATA_DCS_ST3 0x00
- /*MT6163*/ #define PDATA_PCS_SR0 0x00
- /*MT6163*/ #define PDATA_PCS_SR3 0x00
- /*MT6163*/ #define PDATA_PCS_ST0 0x00
- /*MT6163*/ #define PDATA_PCS_ST3 0x00
- /*MT6163*/ #endif /* IS_BSI_TRIG_OFFCHIP_BPI_SUPPORT */
- /*MT6163*/ #endif /* RF9810_RF1131_V1_1 */
- /*MT6163*/
- /*MT6163*/ #ifdef SKY_77569
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* Definitions of BPI Data for RF9810 & RF1131 */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* PRCB : bit pin */
- /*MT6163*/ /* 0 TXEN (AST SPI_GPO10) */
- /*MT6163*/ /* 1 CTRL0 (AST SPI_GPO 6) */
- /*MT6163*/ /* 2 CTRL1 (AST SPI_GPO 7) */
- /*MT6163*/ /* 3 CTRL2 (AST SPI_GPO 8) */
- /*MT6163*/ /* 4 VC1 (AST SPI_GPO16) */
- /*MT6163*/ /* 5 VC2 (AST SPI_GPO17) */
- /*MT6163*/ /* 6 VC3 (AST SPI_GPO18) */
- /*MT6163*/ /* 7 Dual-Mode Sync */
- /*MT6163*/ /* 8 not used */
- /*MT6163*/ /* 9 GSM_ERR_DET_ID */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ #define GSM_ERR_DET_ID 9 // 1
- /*MT6163*/ #define GSM_ERR_DET (0x1<<GSM_ERR_DET_ID)
- /*MT6163*/
- /*MT6163*/ #define PDATA_GMSK 0x004
- /*MT6163*/ #define PDATA_8PSK 0x000
- /*MT6163*/
- /*MT6163*/ #define PDATA_GSM850_PR1 (0x002|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PR2 (0x002|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PR3 (0x000 )
- /*MT6163*/ #define PDATA_GSM_PR1 (0x002|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PR2 (0x002|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PR3 (0x000 )
- /*MT6163*/ #define PDATA_DCS_PR1 (0x003|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PR2 (0x003|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PR3 (0x000 )
- /*MT6163*/ #define PDATA_PCS_PR1 (0x003|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PR2 (0x003|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PR3 (0x000 )
- /*MT6163*/ #define PDATA_GSM850_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT2 (0x022|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT2B (0x022|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM850_PT3 (0x000 )
- /*MT6163*/ #define PDATA_GSM850_PT2M1_G8 (0x022|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M2_G8 (0x022|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M1_8G (0x022|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM850_PT2M2_8G (0x022|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT2 (0x022|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT2B (0x022|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_GSM_PT3 (0x000 )
- /*MT6163*/ #define PDATA_GSM_PT2M1_G8 (0x022|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_GSM_PT2M2_G8 (0x022|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM_PT2M1_8G (0x022|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_GSM_PT2M2_8G (0x022|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_DCS_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT2 (0x023|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT2B (0x023|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_DCS_PT3 (0x000 )
- /*MT6163*/ #define PDATA_DCS_PT2M1_G8 (0x023|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_DCS_PT2M2_G8 (0x023|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_DCS_PT2M1_8G (0x023|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_DCS_PT2M2_8G (0x023|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_PCS_PT1 (0x000|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT2 (0x023|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT2B (0x023|GSM_ERR_DET )
- /*MT6163*/ #define PDATA_PCS_PT3 (0x000 )
- /*MT6163*/ #define PDATA_PCS_PT2M1_G8 (0x023|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_PCS_PT2M2_G8 (0x023|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_PCS_PT2M1_8G (0x023|GSM_ERR_DET|PDATA_8PSK)
- /*MT6163*/ #define PDATA_PCS_PT2M2_8G (0x023|GSM_ERR_DET|PDATA_GMSK)
- /*MT6163*/ #define PDATA_INIT (0x000 )
- /*MT6163*/ #define PDATA_IDLE (0x000 )
- /*MT6163*/
- /*MT6163*/ #if IS_BSI_TRIG_OFFCHIP_BPI_SUPPORT
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* Definitions of Offchip BPI Data */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ /* PRCB : bit pin */
- /*MT6163*/ /* 0 not used (AST SPI_GPO 0) */
- /*MT6163*/ /* 1 not used (AST SPI_GPO 1) */
- /*MT6163*/ /* 2 not used (AST SPI_GPO 2) */
- /*MT6163*/ /* 3 not used (AST SPI_GPO 3) */
- /*MT6163*/ /* 4 not used (AST SPI_GPO 4) */
- /*MT6163*/ /* 5 not used (AST SPI_GPO 5) */
- /*MT6163*/ /* 6 not used (AST SPI_GPO11) */
- /*MT6163*/ /* 7 not used (AST SPI_GPO12) */
- /*MT6163*/ /*------------------------------------------------*/
- /*MT6163*/ #define PDATA_GSM850_SR0 0x00
- /*MT6163*/ #define PDATA_GSM850_SR3 0x00
- /*MT6163*/ #define PDATA_GSM850_ST0 0x00
- /*MT6163*/ #define PDATA_GSM850_ST3 0x00
- /*MT6163*/ #define PDATA_GSM_SR0 0x00
- /*MT6163*/ #define PDATA_GSM_SR3 0x00
- /*MT6163*/ #define PDATA_GSM_ST0 0x00
- /*MT6163*/ #define PDATA_GSM_ST3 0x00
- /*MT6163*/ #define PDATA_DCS_SR0 0x00
- /*MT6163*/ #define PDATA_DCS_SR3 0x00
- /*MT6163*/ #define PDATA_DCS_ST0 0x00
- /*MT6163*/ #define PDATA_DCS_ST3 0x00
- /*MT6163*/ #define PDATA_PCS_SR0 0x00
- /*MT6163*/ #define PDATA_PCS_SR3 0x00
- /*MT6163*/ #define PDATA_PCS_ST0 0x00
- /*MT6163*/ #define PDATA_PCS_ST3 0x00
- /*MT6163*/ #endif /* IS_BSI_TRIG_OFFCHIP_BPI_SUPPORT */
- /*MT6163*/ #endif /* SKY_77569 */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* APC Compensation Thresholds */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ #define SECONDS2FRAME(n) ((int)((n)*1000/4.615))
- /*MT6163*/ #define VOLT2UVOLT(n) ((int)((n)*1000000))
- /*MT6163*/ #define TEMP2MTEMP(n) ((int)((n)*1000))
- /*MT6163*/
- /*MT6163*/ #define BAT_VOLTAGE_SAMPLE_PERIOD SECONDS2FRAME(180)
- /*MT6163*/ #define BAT_VOLTAGE_AVERAGE_COUNT 1
- /*MT6163*/ #define BAT_LOW_VOLTAGE VOLT2UVOLT(3.5)
- /*MT6163*/ #define BAT_HIGH_VOLTAGE VOLT2UVOLT(4.0)
- /*MT6163*/
- /*MT6163*/ #define BAT_TEMPERATURE_SAMPLE_PERIOD SECONDS2FRAME(180)
- /*MT6163*/ #define BAT_TEMPERATURE_AVERAGE_COUNT 1
- /*MT6163*/ #define BAT_LOW_TEMPERATURE TEMP2MTEMP(0)
- /*MT6163*/ #define BAT_HIGH_TEMPERATURE TEMP2MTEMP(50)
- /*MT6163*/
- /*MT6163*/ #define RF_TEMPERATURE_SAMPLE_PERIOD SECONDS2FRAME(1)
- /*MT6163*/ #define RF_TEMPERATURE_AVERAGE_COUNT 1
- /*MT6163*/
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* Crystal Parameter */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ #if defined(AFC_VCXO)
- /*MT6163*/ #define Custom_RF_XO_CapID 190 /* RF SOP */
- /*MT6163*/ #else
- /*MT6163*/ #define Custom_RF_XO_CapID 0 /* For MT6163 with VCTCXO */
- /*MT6163*/ #endif
- /*MT6163*/
- /*MT6163*/ #if defined(SKY77344_21) || defined(RF9810_RF1131) || defined(RF9810_RF1131_V1_1)
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* Definitions of Band Mode Selection on */
- /*MT6163*/ /* High/Low Band Receivers */
- /*MT6163*/ /* LNA_1 : High Band */
- /*MT6163*/ /* LNA_2 : High Band */
- /*MT6163*/ /* LNA_3 : High Band */
- /*MT6163*/ /* LNA_4 : High Band PCS1900 */
- /*MT6163*/ /* LNA_5 : High Band DCS1800 */
- /*MT6163*/ /* LNA_6 : Low Band GSM 900 */
- /*MT6163*/ /* LNA_7 : Low Band GSM 850 */
- /*MT6163*/ /* NO_USE_BAND : no use of this band */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ #define GSM850_PATH_SEL LNA_6 /* Defined in l1d_rf.h */
- /*MT6163*/ #define GSM_PATH_SEL LNA_7
- /*MT6163*/ #define DCS_PATH_SEL LNA_2
- /*MT6163*/ #define PCS_PATH_SEL LNA_4
- /*MT6163*/ #elif defined(SKY_77569)
- /*MT6163*/ #define GSM850_PATH_SEL LNA_6 /* Defined in l1d_rf.h */ //6
- /*MT6163*/ #define GSM_PATH_SEL LNA_7 //7
- /*MT6163*/ #define DCS_PATH_SEL LNA_2
- /*MT6163*/ #define PCS_PATH_SEL LNA_4
- /*MT6163*/ #endif
- /*MT6163*/
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* TX Power Control (TXPC) Support */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ #define TXPC_EPSK_TP_SLOPE_LB 24 /* Unit: degree/dB. Temperature increment that causes 1-dB EPSK TX power drop */
- /*MT6163*/ #define TXPC_EPSK_TP_SLOPE_HB 23
- /*MT6163*/
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* 2G/TD HB1 Output Sharing for PA Reuse */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ #if IS_TDD_DUAL_MODE_SUPPORT
- /*MT6163*/ #define IS_OT_2G_HB_HIGH_TX_GAIN_ON 1
- /*MT6163*/ #else
- /*MT6163*/ #define IS_OT_2G_HB_HIGH_TX_GAIN_ON 0
- /*MT6163*/ #endif
- /*MT6163*/
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* Enable/Disable Output of Clock 1-4 */
- /*MT6163*/ /* 1 : Enable */
- /*MT6163*/ /* 0 : Disable */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ #define CLK1_EN 1 /* Enable CLK1 for TD baseband chip */
- /*MT6163*/ #define CLK2_EN 1 /* Enable CLK2 for 2G baseband chip */
- /*MT6163*/ #define CLK3_EN 1
- /*MT6163*/ #define CLK4_EN 1
- /*MT6163*/
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* TX Power Rollback Parameters */
- /*MT6163*/ /*--------------------------------------------*/
- /*MT6163*/ /* Unit: 1/8 dB */
- /*MT6163*/ /* GSM850 GMSK */
- /*MT6163*/ #define GSM850_TX_ROLLBACK_2T_GMSK 8
- /*MT6163*/ #define GSM850_TX_ROLLBACK_3T_GMSK 24
- /*MT6163*/ #define GSM850_TX_ROLLBACK_4T_GMSK 32
- /*MT6163*/ #define GSM850_TX_ROLLBACK_5T_GMSK 40
- /*MT6163*/
- /*MT6163*/ /* GSM GMSK */
- /*MT6163*/ #define GSM_TX_ROLLBACK_2T_GMSK 8
- /*MT6163*/ #define GSM_TX_ROLLBACK_3T_GMSK 24
- /*MT6163*/ #define GSM_TX_ROLLBACK_4T_GMSK 32
- /*MT6163*/ #define GSM_TX_ROLLBACK_5T_GMSK 40
- /*MT6163*/
- /*MT6163*/ /* DCS GMSK */
- /*MT6163*/ #define DCS_TX_ROLLBACK_2T_GMSK 8
- /*MT6163*/ #define DCS_TX_ROLLBACK_3T_GMSK 24
- /*MT6163*/ #define DCS_TX_ROLLBACK_4T_GMSK 32
- /*MT6163*/ #define DCS_TX_ROLLBACK_5T_GMSK 40
- /*MT6163*/
- /*MT6163*/ /* PCS GMSK */
- /*MT6163*/ #define PCS_TX_ROLLBACK_2T_GMSK 8
- /*MT6163*/ #define PCS_TX_ROLLBACK_3T_GMSK 24
- /*MT6163*/ #define PCS_TX_ROLLBACK_4T_GMSK 32
- /*MT6163*/ #define PCS_TX_ROLLBACK_5T_GMSK 40
- /*MT6163*/
- /*MT6163*/ /* GSM850 EPSK */
- /*MT6163*/ #define GSM850_TX_ROLLBACK_2T_EPSK 8
- /*MT6163*/ #define GSM850_TX_ROLLBACK_3T_EPSK 24
- /*MT6163*/ #define GSM850_TX_ROLLBACK_4T_EPSK 32
- /*MT6163*/ #define GSM850_TX_ROLLBACK_5T_EPSK 40
- /*MT6163*/
- /*MT6163*/ /* GSM EPSK */
- /*MT6163*/ #define GSM_TX_ROLLBACK_2T_EPSK 8
- /*MT6163*/ #define GSM_TX_ROLLBACK_3T_EPSK 24
- /*MT6163*/ #define GSM_TX_ROLLBACK_4T_EPSK 32
- /*MT6163*/ #define GSM_TX_ROLLBACK_5T_EPSK 40
- /*MT6163*/
- /*MT6163*/ /* DCS EPSK */
- /*MT6163*/ #define DCS_TX_ROLLBACK_2T_EPSK 8
- /*MT6163*/ #define DCS_TX_ROLLBACK_3T_EPSK 24
- /*MT6163*/ #define DCS_TX_ROLLBACK_4T_EPSK 32
- /*MT6163*/ #define DCS_TX_ROLLBACK_5T_EPSK 40
- /*MT6163*/
- /*MT6163*/ /* PCS EPSK */
- /*MT6163*/ #define PCS_TX_ROLLBACK_2T_EPSK 8
- /*MT6163*/ #define PCS_TX_ROLLBACK_3T_EPSK 24
- /*MT6163*/ #define PCS_TX_ROLLBACK_4T_EPSK 32
- /*MT6163*/ #define PCS_TX_ROLLBACK_5T_EPSK 40
- /*MT6163*/
- /* --------------------------------------------------------------------------- */
- #endif /* _L1D_CUSTOM_RF_H_ */
你用我的试试吧
- /*******************************************************************************
- * Copyright Statement:<