UL1d_custiom_rf.h
哪个平台? 2G 还是 3G ?
75平台 3G的,谢谢
75的 我没有,给你77的参考一下
/*******************************************************************************
* 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:
* ---------
* ul1d_custom_rf.h
*
* Project:
* --------
* MT6276
*
* Description:
* ------------
* MT6162 RF constance defintion
*
* Author:
* -------
* -------
*
*******************************************************************************/
#ifndef _UL1D_CUSTOM_RF_H_
#define _UL1D_CUSTOM_RF_H_
/* ------------------------------------------------------------------------- */
#if !defined(MT6162_RF)
#error "rf files mismatch with compile option!"
#endif
#include "ul1d_cid.h"
/*MT6162*/
/*MT6162*/ #define PA_SECTION 3
/*MT6162*/
/*MT6162*/ /*--------------------------------------------------------*/
/*MT6162*/ /* Event Timing Define */
/*MT6162*/ /*--------------------------------------------------------*/
/*MT6162*/
/*MT6162*/ /* Rx ideal timing difference between events 50/150/20 */
/*MT6162*/ /* Tx ideal timing difference between events 50/10/170/20 */
/*MT6162*/ /* 5 us is reserved in each section for bsi transmission and all other delay */
/*MT6162*/ #define TC_SR1 MICROSECOND_TO_CHIP(235)
/*MT6162*/ #define TC_SR2 MICROSECOND_TO_CHIP(180)
/*MT6162*/ #define TC_SR2B MICROSECOND_TO_CHIP( 25)
/*MT6162*/ #define TC_SR2C MICROSECOND_TO_CHIP( 25)
/*MT6162*/ #define TC_SR3 MICROSECOND_TO_CHIP( 20)
/*MT6162*/ #define TC_PR1 MICROSECOND_TO_CHIP(200)
/*MT6162*/ #define TC_PR2 MICROSECOND_TO_CHIP(100)
/*MT6162*/ #define TC_PR2B MICROSECOND_TO_CHIP( 50)
/*MT6162*/ #define TC_PR3 MICROSECOND_TO_CHIP( 20)
/*MT6162*/
/*MT6162*/ /* A dummy gain write to workaround first measurement issue */
/*MT6162*/ /* The time needed to be shifted: bsi write+gain ramping+measurement is around 20 us */
/*MT6162*/ #define TC_ST1 MICROSECOND_TO_CHIP(285)//for 2G change CW43//(290)//(270)
/*MT6162*/ #define TC_ST2 MICROSECOND_TO_CHIP(230)//for 2G change CW43//(235)//(215)
/*MT6162*/ #define TC_ST2B MICROSECOND_TO_CHIP(200)//(220)//(200)
/*MT6162*/ #define TC_ST2C MICROSECOND_TO_CHIP( 25)//( 45)//( 25)
/*MT6162*/ #define TC_ST3 MICROSECOND_TO_CHIP( 0)
/*MT6162*/ #define TC_PT1 MICROSECOND_TO_CHIP(200)
/*MT6162*/ #define TC_PT2 MICROSECOND_TO_CHIP(100)
/*MT6162*/ #define TC_PT2B MICROSECOND_TO_CHIP( 50)
/*MT6162*/ #define TC_PT3 MICROSECOND_TO_CHIP( 10)
/*MT6162*/
/*MT6162*/ #define TC_MIPI_ST1 MICROSECOND_TO_CHIP( 0)
/*MT6162*/ #define TC_MIPI_ST2 MICROSECOND_TO_CHIP( 0)
/*MT6162*/ #define TC_MIPI_ST3 MICROSECOND_TO_CHIP( 0)
/*MT6162*/
/*MT6162*/ /* the following parameter is chip resolution */
/*MT6162*/ #define MAX_OFFSET (24*4) //this value must be equal to max of the following 4 offset value
/*MT6162*/ /* Set VM timing same as PGABSI_OFFSET1 */
/*MT6162*/ #define VM_OFFSET (14*4) //(24*4) //25us
/*MT6162*/ #define VBIAS_OFFSET (14*4) //(24*4)
/*MT6162*/ #define DC2DC_OFFSET (24*4)
/*MT6162*/ #define VGA_OFFSET (24*4)
/*MT6162*/ #define MIPI_OFFSET (14*4)
/*MT6162*/
/*MT6162*/ #if IS_UBSI_UBPI_VER3_SUPPORT
/*MT6162*/
/*MT6162*/ /* For MURUTA SP8T */
/*MT6162*/ /*---------------------------------------------------------------------*/
/*MT6162*/ /* define BPI data for OH (shall be modified by real case) */
/*MT6162*/ /*---------------------------------------------------------------------*/
/*MT6162*/ /* PRCB : bit BPI pin function */
/*MT6162*/ /* 0 0 ASM_VCT1 */
/*MT6162*/ /* 1 1 ASM_VCT2 */
/*MT6162*/ /* 2 2 ASM_VCT3 */
/*MT6162*/ /* 3 3 ASM_VCT4 */
/*MT6162*/ /* 4 4 ASM_VDD */
/*MT6162*/ /* 5 5 MMMB PA use */
/*MT6162*/ /* 6 6 MMMB PA use */
/*MT6162*/ /* 7 7 MMMB PA use */
/*MT6162*/ /* 8 8 MMMB PA use */
/*MT6162*/ /* 9 10 PA1_ON */
/*MT6162*/ /* 10 11 PA2_ON */
/*MT6162*/ /* 11 12 PA5_ON */
/*MT6162*/ /* 12 13 PA8_ON */
/*MT6162*/ /* 13 14 UMTS_ERR_DET_ID */
/*MT6162*/ /*---------------------------------------------------------------------*/
/*MT6162*/
/*MT6162*/ //* --------------------- PDATA_BAND1 Start ---------------------------*/
/*MT6162*/ #define PDATA_BAND1_PR1 0x2001
/*MT6162*/ #define PDATA_BAND1_PR2 0x2001
/*MT6162*/ #define PDATA_BAND1_PR2B 0x2001
/*MT6162*/ #define PDATA_BAND1_PR3 0x0000
/*MT6162*/ #define PDATA_BAND1_PT1 0x2001
/*MT6162*/ #define PDATA_BAND1_PT2 0x2201
/*MT6162*/ #define PDATA_BAND1_PT2B 0x2201
/*MT6162*/ #define PDATA_BAND1_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND1 End ------------------------------*/
/*MT6162*/ /* --------------------- PDATA_BAND2 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND2_PR1 0x201F
/*MT6162*/ #define PDATA_BAND2_PR2 0x201F
/*MT6162*/ #define PDATA_BAND2_PR2B 0x201F
/*MT6162*/ #define PDATA_BAND2_PR3 0x0000
/*MT6162*/ #define PDATA_BAND2_PT1 0x201F
/*MT6162*/ #define PDATA_BAND2_PT2 0x241F
/*MT6162*/ #define PDATA_BAND2_PT2B 0x241F
/*MT6162*/ #define PDATA_BAND2_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND2 End ------------------------------*/
/*MT6162*/ /* --------------------- PDATA_BAND5 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND5_PR1 0x2019
/*MT6162*/ #define PDATA_BAND5_PR2 0x2019
/*MT6162*/ #define PDATA_BAND5_PR2B 0x2019
/*MT6162*/ #define PDATA_BAND5_PR3 0x0000
/*MT6162*/ #define PDATA_BAND5_PT1 0x2019
/*MT6162*/ #define PDATA_BAND5_PT2 0x2819
/*MT6162*/ #define PDATA_BAND5_PT2B 0x2819
/*MT6162*/ #define PDATA_BAND5_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND5 End ------------------------------*/
/*MT6162*/ /* --------------------- PDATA_BAND6 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND6_PR1 0x2019
/*MT6162*/ #define PDATA_BAND6_PR2 0x2019
/*MT6162*/ #define PDATA_BAND6_PR2B 0x2019
/*MT6162*/ #define PDATA_BAND6_PR3 0x0000
/*MT6162*/ #define PDATA_BAND6_PT1 0x2019
/*MT6162*/ #define PDATA_BAND6_PT2 0x2819
/*MT6162*/ #define PDATA_BAND6_PT2B 0x2819
/*MT6162*/ #define PDATA_BAND6_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND6 End ------------------------------*/
/*MT6162*/ /* --------------------- PDATA_BAND8 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND8_PR1 0x2003
/*MT6162*/ #define PDATA_BAND8_PR2 0x2003
/*MT6162*/ #define PDATA_BAND8_PR2B 0x2003
/*MT6162*/ #define PDATA_BAND8_PR3 0x0000
/*MT6162*/ #define PDATA_BAND8_PT1 0x2003
/*MT6162*/ #define PDATA_BAND8_PT2 0x2803
/*MT6162*/ #define PDATA_BAND8_PT2B 0x2803
/*MT6162*/ #define PDATA_BAND8_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND8 End ------------------------------*/
/*MT6162*/
/*MT6162*/ #else //IS_UBSI_UBPI_VER2_SUPPORT || IS_UBSI_UBPI_VER1_SUPPORT
/*MT6162*/
/*MT6162*/ /*---------------------------------------------------------------------*/
/*MT6162*/ /* define BPI data for OH (shall be modified by real case) */
/*MT6162*/ /*---------------------------------------------------------------------*/
/*MT6162*/ /* PRCB : bit BPI pin function */
/*MT6162*/ /* 0 0 ASM_VCT1 */
/*MT6162*/ /* 1 1 ASM_VCT2 */
/*MT6162*/ /* 2 2 ASM_VCT3 */
/*MT6162*/ /* 3 3 ASM_VCT4 */
/*MT6162*/ /* 4 4 ASM_VDD */
/*MT6162*/ /* 5 10 PA1_ON */
/*MT6162*/ /* 6 11 PA2_ON */
/*MT6162*/ /* 7 12 PA5_ON */
/*MT6162*/ /* 8 13 PA8_ON */
/*MT6162*/ /* 9 14 UMTS_ERR_DET_ID */
/*MT6162*/ /*---------------------------------------------------------------------*/
/*MT6162*/
/*MT6162*/ /* --------------------- PDATA_BAND1 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND1_PR1 0x0214
/*MT6162*/ #define PDATA_BAND1_PR2 0x0214
/*MT6162*/ #define PDATA_BAND1_PR2B 0x0214
/*MT6162*/ #define PDATA_BAND1_PR3 0x0000
/*MT6162*/ #define PDATA_BAND1_PT1 0x0214
/*MT6162*/ #define PDATA_BAND1_PT2 0x0234
/*MT6162*/ #define PDATA_BAND1_PT2B 0x0234
/*MT6162*/ #define PDATA_BAND1_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND1 End ------------------------------*/
/*MT6162*/ /* --------------------- PDATA_BAND2 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND2_PR1 0x021F
/*MT6162*/ #define PDATA_BAND2_PR2 0x021F
/*MT6162*/ #define PDATA_BAND2_PR2B 0x021F
/*MT6162*/ #define PDATA_BAND2_PR3 0x0000
/*MT6162*/ #define PDATA_BAND2_PT1 0x021F
/*MT6162*/ #define PDATA_BAND2_PT2 0x025F
/*MT6162*/ #define PDATA_BAND2_PT2B 0x025F
/*MT6162*/ #define PDATA_BAND2_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND2 End ------------------------------*/
/*MT6162*/ /* --------------------- PDATA_BAND5 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND5_PR1 0x0219
/*MT6162*/ #define PDATA_BAND5_PR2 0x0219
/*MT6162*/ #define PDATA_BAND5_PR2B 0x0219
/*MT6162*/ #define PDATA_BAND5_PR3 0x0000
/*MT6162*/ #define PDATA_BAND5_PT1 0x0219
/*MT6162*/ #define PDATA_BAND5_PT2 0x0299
/*MT6162*/ #define PDATA_BAND5_PT2B 0x0299
/*MT6162*/ #define PDATA_BAND5_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND5 End ------------------------------*/
/*MT6162*/ /* --------------------- PDATA_BAND6 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND6_PR1 0x0219
/*MT6162*/ #define PDATA_BAND6_PR2 0x0219
/*MT6162*/ #define PDATA_BAND6_PR2B 0x0219
/*MT6162*/ #define PDATA_BAND6_PR3 0x0000
/*MT6162*/ #define PDATA_BAND6_PT1 0x0219
/*MT6162*/ #define PDATA_BAND6_PT2 0x0299
/*MT6162*/ #define PDATA_BAND6_PT2B 0x0299
/*MT6162*/ #define PDATA_BAND6_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND6 End ------------------------------*/
/*MT6162*/ /* --------------------- PDATA_BAND8 Start ----------------------------*/
/*MT6162*/ #define PDATA_BAND8_PR1 0x0211
/*MT6162*/ #define PDATA_BAND8_PR2 0x0211
/*MT6162*/ #define PDATA_BAND8_PR2B 0x0211
/*MT6162*/ #define PDATA_BAND8_PR3 0x0000
/*MT6162*/ #define PDATA_BAND8_PT1 0x0211
/*MT6162*/ #define PDATA_BAND8_PT2 0x0311
/*MT6162*/ #define PDATA_BAND8_PT2B 0x0311
/*MT6162*/ #define PDATA_BAND8_PT3 0x0000
/*MT6162*/ /* --------------------- PDATA_BAND8 End ------------------------------*/
/*MT6162*/
/*MT6162*/ #endif
/*MT6162*/
/*MT6162*/ /****************************************************************************/
/*MT6162*/ /* Define your band mode selection on one of eight LNA ports. */
/*MT6162*/ /* Each of the 8 independent LNA/mixer/divider are either dedicated to */
/*MT6162*/ /* either high (VCO divide-by-2) or low (VCO divide-by-4) band. */
/*MT6162*/ /* There are four high band and four low band to choose. */
/*MT6162*/ /* LNA1/3/5/6 are for high band; LNA2/4/7/8 are for low band */
/*MT6162*/ /* All options are listed below: */
/*MT6162*/ /* LNA1_HIGH_BAND/LNA2_LOW_BAND/LNA3_HIGH_BAND/LNA4_LOW_BAND */
/*MT6162*/ /* LNA5_HIGH_BAND/LNA6_HIGH_BAND/LNA7_LOW_BAND/LNA8_LOW_BAND/NON_USED_BAND */
/*MT6162*/ /****************************************************************************/
/*MT6162*/ #define BAND1_CHANNEL_SEL LNA3_HIGH_BAND
/*MT6162*/ #define BAND2_CHANNEL_SEL LNA1_HIGH_BAND
/*MT6162*/ #define BAND3_CHANNEL_SEL NON_USED_BAND
/*MT6162*/ #define BAND4_CHANNEL_SEL NON_USED_BAND
/*MT6162*/ #define BAND5_CHANNEL_SEL LNA4_LOW_BAND
/*MT6162*/ #define BAND6_CHANNEL_SEL LNA4_LOW_BAND
/*MT6162*/ #define BAND8_CHANNEL_SEL LNA2_LOW_BAND
/*MT6162*/ #define BAND9_CHANNEL_SEL NON_USED_BAND
/*MT6162*/ #define BAND10_CHANNEL_SEL NON_USED_BAND
/*MT6162*/
/*MT6162*/ /************************************************************/
/*MT6162*/ /* Define your tx output selection */
/*MT6162*/ /* There are two high band and one low band to choose. */
/*MT6162*/ /* All options are listed below: */
/*MT6162*/ /* TX_HIGH_BAND3/TX_HIGH_BAND2/TX_LOW_BAND1/TX_NULL_BAND */
/*MT6162*/ /************************************************************/
/*MT6162*/ #define BAND1_OUTPUT_SEL TX_HIGH_BAND3
/*MT6162*/ #define BAND2_OUTPUT_SEL TX_HIGH_BAND2
/*MT6162*/ #define BAND3_OUTPUT_SEL TX_NULL_BAND
/*MT6162*/ #define BAND4_OUTPUT_SEL TX_NULL_BAND
/*MT6162*/ #define BAND5_OUTPUT_SEL TX_LOW_BAND1
/*MT6162*/ #define BAND6_OUTPUT_SEL TX_LOW_BAND1
/*MT6162*/ #define BAND8_OUTPUT_SEL TX_LOW_BAND1
/*MT6162*/ #define BAND9_OUTPUT_SEL TX_NULL_BAND
/*MT6162*/ #define BAND10_OUTPUT_SEL TX_NULL_BAND
/*MT6162*/
/*MT6162*/ #define PMU_PASETTING KAL_TRUE
/*MT6162*/
/*MT6162*/ #define RX_HIGHBAND1_INDICATOR UMTSBand1
/*MT6162*/ #define RX_HIGHBAND2_INDICATOR UMTSBandNone
/*MT6162*/ #define RX_LOWBAND1_INDICATOR UMTSBand8
/*MT6162*/ #define RX_LOWBAND2_INDICATOR UMTSBandNone
/*============================================================================== */
#endif
针对我们的硬件原理,我要如何配置,谢谢!