yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame^] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of MediaTek Inc. (C) 2005 |
| 8 | * |
| 9 | * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 10 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 11 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 12 | * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 13 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 14 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 15 | * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 16 | * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 17 | * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 18 | * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 19 | * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 20 | * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 21 | * |
| 22 | * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 23 | * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 24 | * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 25 | * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 26 | * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 27 | * |
| 28 | * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 29 | * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 30 | * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 31 | * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 32 | * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 33 | * |
| 34 | *****************************************************************************/ |
| 35 | |
| 36 | /******************************************************************************* |
| 37 | * |
| 38 | * Filename: |
| 39 | * --------- |
| 40 | * ul1cal.h |
| 41 | * |
| 42 | * Project: |
| 43 | * -------- |
| 44 | * Maui_Software |
| 45 | * |
| 46 | * Description: |
| 47 | * ------------ |
| 48 | * The structure definition of UL1 calibration data |
| 49 | * |
| 50 | * Author: |
| 51 | * ------- |
| 52 | * ------- |
| 53 | * |
| 54 | *============================================================================== |
| 55 | * HISTORY |
| 56 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 57 | *------------------------------------------------------------------------------ |
| 58 | * removed! |
| 59 | * removed! |
| 60 | * removed! |
| 61 | *------------------------------------------------------------------------------ |
| 62 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 63 | *============================================================================== |
| 64 | *******************************************************************************/ |
| 65 | #ifndef UL1CAL_H |
| 66 | #define UL1CAL_H |
| 67 | |
| 68 | /*===============================================================================*/ |
| 69 | |
| 70 | #include "kal_general_types.h" |
| 71 | #include "ul1d_rf_public.h" |
| 72 | #include "dcl.h" //SmartPhone Project's CommonModemImage need this |
| 73 | #include "ul1d_rf_cid.h" |
| 74 | #include "ul1d_rf_cal_poc_data.h" |
| 75 | #include "ul1d_mipi_public.h" |
| 76 | /*===============================================================================*/ |
| 77 | |
| 78 | /* ------------------------------------------------------------------------- */ |
| 79 | typedef struct |
| 80 | { |
| 81 | kal_uint16 tempdacData[8]; |
| 82 | }ul1cal_tempdacData_T; |
| 83 | |
| 84 | typedef struct |
| 85 | { |
| 86 | U_sTEMPAGCOFFSET pathlossData; |
| 87 | }ul1cal_pathlossData_T; |
| 88 | |
| 89 | typedef struct |
| 90 | { |
| 91 | U_sRAMPDATA txdacData; |
| 92 | }ul1cal_txdacData_T; |
| 93 | |
| 94 | /* PA 8-level control (MT6276, MT6573) */ |
| 95 | typedef struct |
| 96 | { |
| 97 | U_sPAOCTLVLSETTING txPaOctLevData; |
| 98 | }ul1cal_txPaOctLevData_T; |
| 99 | |
| 100 | typedef struct |
| 101 | { |
| 102 | U_sPARACHTMCOMPDATA txPrachTmCompData; |
| 103 | }ul1cal_txPrachTmCompData_T; |
| 104 | |
| 105 | typedef struct |
| 106 | { |
| 107 | U_sAFCDACDATA afcDacData; |
| 108 | }ul1cal_afcDacData_T; |
| 109 | |
| 110 | typedef struct |
| 111 | { |
| 112 | U_sAFCCAPDATA afcCapData; |
| 113 | }ul1cal_afcCapData_T; |
| 114 | |
| 115 | #if defined (__UL1_HS_PLATFORM__) || defined (__UL1_HS_PLUS_PLATFORM__) |
| 116 | |
| 117 | typedef struct |
| 118 | { |
| 119 | U_sUl1dRfCustomInputData umtsRfCustomInput; |
| 120 | }ul1cal_umtsRfCustomInput_T; |
| 121 | |
| 122 | #endif |
| 123 | |
| 124 | typedef struct |
| 125 | { |
| 126 | U_sTEMPAGCOFFSET pathlossData; |
| 127 | }ul1cal_pathlossRxdData_T; |
| 128 | |
| 129 | typedef struct |
| 130 | { |
| 131 | U_sPADRIFTSETTING txPaDriftCompData; |
| 132 | }ul1cal_txPaDriftCompData_T; |
| 133 | |
| 134 | |
| 135 | #if IS_3G_SAR_TX_POWER_BACKOFF_SUPPORT |
| 136 | typedef struct |
| 137 | { |
| 138 | U_sSARBackoffDATA sarBackoffData; |
| 139 | }ul1cal_SARBackoffData_T; |
| 140 | |
| 141 | typedef struct |
| 142 | { |
| 143 | const U_sSARBackoffDATA* const* sarBackoffData_p; |
| 144 | }Ul1CustomDynamicSARBackoffData; |
| 145 | |
| 146 | #endif |
| 147 | |
| 148 | |
| 149 | #if IS_3G_TX_POWER_OFFSET_SUPPORT |
| 150 | typedef struct |
| 151 | { |
| 152 | U_sTXPOWEROFFSETDATA txPowerOffsetData; |
| 153 | }ul1cal_txPowerOffsetData_T; |
| 154 | |
| 155 | typedef struct |
| 156 | { |
| 157 | const U_sTXPOWEROFFSETDATA* const* TpoData_p; |
| 158 | }Ul1CustomDynamicTpoData; |
| 159 | |
| 160 | #endif |
| 161 | |
| 162 | #if IS_3G_TX_NSFT_POWER_OFFSET_SUPPORT |
| 163 | typedef struct |
| 164 | { |
| 165 | const U_sTXNSFTPOWEROFFSETDATA* const* nsftTpoData_p; |
| 166 | }Ul1CustomDynamicNsftTpoData; |
| 167 | #endif |
| 168 | |
| 169 | #if (IS_3G_RX_POWER_OFFSET_SUPPORT ) |
| 170 | typedef struct |
| 171 | { |
| 172 | U_sUl1dMetaRxPowerOffsetSetting RpoSetting; |
| 173 | const U_sRXPOWEROFFSETDATA* const* RpoData_p; |
| 174 | }Ul1CustomDynamicRpoData; |
| 175 | #endif |
| 176 | #if (IS_3G_VPA_SEL_BY_BAND_SUPPORT) |
| 177 | typedef struct |
| 178 | { |
| 179 | const UMTS_VPA_SOURCE_TYPE* const* vpaSrcSelTable_p; |
| 180 | }Ul1CustomDynamicVpaSrcSelData; |
| 181 | #endif/*IS_3G_VPA_SEL_BY_BAND_SUPPORT*/ |
| 182 | |
| 183 | /*------------- Single Software Load for Multiple Components Compatible -------------*/ |
| 184 | /***************************************************************************** |
| 185 | * Constant : UL1CUSTOM_MAX_RF_BPI_EVENT_NUM |
| 186 | * Group : Real target, Internal, UL1D common operation |
| 187 | * Description : Constant to be used for record the maximum 3G BPI event |
| 188 | * support numbers currently in use |
| 189 | *****************************************************************************/ |
| 190 | #define UL1CUSTOM_MAX_RF_BPI_EVENT_NUM (15) //MT6280 Changes to 15 |
| 191 | |
| 192 | /***************************************************************************** |
| 193 | * Constant : UL1CUSTOM_MAX_RF_SUPPORT_BAND_NUM |
| 194 | * Group : Real target, Internal, UL1D common operation |
| 195 | * Description : Constant to be used for record the maximum 3G RF band |
| 196 | * support numbers currently in use |
| 197 | *****************************************************************************/ |
| 198 | #define UL1CUSTOM_MAX_RF_SUPPORT_BAND_NUM (MAX_SUPPORTED_BAND_INDEX) //MT6280 Changes to 5 |
| 199 | |
| 200 | /***************************************************************************** |
| 201 | * Constant : UL1CUSTOM_NULL_ACTION |
| 202 | * UL1CUSTOM_GPIO_DETECTION_ID |
| 203 | * UL1CUSTOM_ADC_DETECTION_ID |
| 204 | * UL1CUSTOM_NVRAM_BARCODE_DETECTION_ID |
| 205 | * Group : Real target, Internals, UL1D common operation |
| 206 | * Description : Constant to be used to define the value to be used in |
| 207 | * enumeration Ul1CustomActionId |
| 208 | *****************************************************************************/ |
| 209 | #define UL1CUSTOM_NULL_ACTION (0) |
| 210 | #define UL1CUSTOM_GPIO_DETECTION_ID (1) |
| 211 | #define UL1CUSTOM_ADC_DETECTION_ID (2) |
| 212 | #define UL1CUSTOM_NVRAM_BARCODE_DETECTION_ID (3) |
| 213 | |
| 214 | /***************************************************************************** |
| 215 | * Typedef : Ul1CustomFunction |
| 216 | * Group : Real target, Internals, UL1D common operation |
| 217 | * Type : Function pointer |
| 218 | * Description : Internal typedef used by UL1 Custom action function prototype |
| 219 | *****************************************************************************/ |
| 220 | typedef void (*Ul1CustomFunction)(void *usrDataPtr); |
| 221 | |
| 222 | /***************************************************************************** |
| 223 | * Typedef : Ul1CustomDynamicInitLnaPortTxPath |
| 224 | * Group : Real target, Internals, UL1D common operation |
| 225 | * Type : structure |
| 226 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 227 | * for LNA port and Tx path setting |
| 228 | *****************************************************************************/ |
| 229 | typedef struct |
| 230 | { |
| 231 | /* User input to notify the band of the data to be modified */ |
| 232 | kal_uint32 bandToModify; |
| 233 | |
| 234 | /* LNA port selection */ |
| 235 | kal_uint8 lnaPortNum; |
| 236 | |
| 237 | /* TX output path selection */ |
| 238 | kal_uint8 txOutputSel; |
| 239 | |
| 240 | /* RXD LNA port selection */ |
| 241 | kal_uint8 lnaPortNum2; |
| 242 | } Ul1CustomDynamicInitLnaPortTxPath; |
| 243 | |
| 244 | /***************************************************************************** |
| 245 | * Typedef : Ul1CustomDynamicInitUmtsBpiData |
| 246 | * Group : Real target, Internals, UL1D common operation |
| 247 | * Type : structure |
| 248 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 249 | * 3G BPI data |
| 250 | *****************************************************************************/ |
| 251 | typedef struct |
| 252 | { |
| 253 | /* User input to notify the band of the data to be modified */ |
| 254 | kal_uint32 bandToModify; |
| 255 | |
| 256 | /* ASM logics */ |
| 257 | kal_uint16 asmLogics[UL1CUSTOM_MAX_RF_BPI_EVENT_NUM]; |
| 258 | |
| 259 | /* PA enable control bits */ |
| 260 | // kal_uint8 paEnables[UL1CUSTOM_MAX_RF_BPI_EVENT_NUM]; |
| 261 | |
| 262 | } Ul1CustomDynamicInitUmtsBpiData; |
| 263 | |
| 264 | /***************************************************************************** |
| 265 | * Typedef : Ul1CustomDynamicInitUmtsTxRampData |
| 266 | * Group : Real target, Internals, UL1D common operation |
| 267 | * Type : structure |
| 268 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 269 | * 3G Tx Ramp data |
| 270 | *****************************************************************************/ |
| 271 | typedef struct |
| 272 | { |
| 273 | /* 3G TX Ramp data array */ |
| 274 | U_sRAMPDATA *TxRampData[UL1CUSTOM_MAX_RF_SUPPORT_BAND_NUM]; |
| 275 | |
| 276 | } Ul1CustomDynamicInitUmtsTxRampData; |
| 277 | |
| 278 | /***************************************************************************** |
| 279 | * Typedef : Ul1CustomDynamicInitUmtsTxPaOctLvlData |
| 280 | * Group : Real target, Internals, UL1D common operation |
| 281 | * Type : structure |
| 282 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 283 | * 3G Tx PA oct-level data |
| 284 | *****************************************************************************/ |
| 285 | typedef struct |
| 286 | { |
| 287 | /* 3G TX Ramp data array */ |
| 288 | U_sPAOCTLVLSETTING *TxPaOctLvl[UL1CUSTOM_MAX_RF_SUPPORT_BAND_NUM]; |
| 289 | |
| 290 | } Ul1CustomDynamicInitUmtsTxPaOctLvlData; |
| 291 | |
| 292 | /***************************************************************************** |
| 293 | * Typedef : Ul1CustomDynamicInitUmtsRxPathLossData |
| 294 | * Group : Real target, Internals, UL1D common operation |
| 295 | * Type : structure |
| 296 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 297 | * 3G Rx path loss data |
| 298 | *****************************************************************************/ |
| 299 | |
| 300 | typedef struct |
| 301 | { |
| 302 | /* 3G TX Ramp data array */ |
| 303 | U_sTEMPAGCOFFSET **RxPathLoss_p; |
| 304 | |
| 305 | } Ul1CustomDynamicInitUmtsRxPathLossData; |
| 306 | |
| 307 | typedef struct |
| 308 | { |
| 309 | /* 3G RX path loss */ |
| 310 | const U_sTEMPAGCOFFSET* const* RxPathLoss_p; |
| 311 | const U_sTEMPAGCOFFSET* const* RxDPathLoss_p; |
| 312 | const U_sPAOCTLVLSETTING* const* PaOctLev_p; |
| 313 | const U_sPARACHTMCOMPDATA* const* PaRachComp_p; |
| 314 | const U_sPADRIFTSETTING* const* PaDrift_p; |
| 315 | const U_sRAMPDATA* const* RampData_p; |
| 316 | const kal_uint16 *TempDac_p; |
| 317 | const U_sAFCCAPDATA *AfcCap_p; |
| 318 | const U_sAFCDACDATA *AfcDac_p; |
| 319 | } Ul1CustomDynamicInitUmtsCalData; |
| 320 | |
| 321 | typedef struct |
| 322 | { |
| 323 | const UMTS_FE_ROUTE_TABLE_T *FeSetting; |
| 324 | |
| 325 | } Ul1CustomDynamicInitUmtsFeSettingData; |
| 326 | |
| 327 | typedef struct |
| 328 | { |
| 329 | const U_sDPD_COMMON_CTRL **DpdCtrlData_p; |
| 330 | const U_UL1D_PCFE_DPD_OTFC_CUSTOM_PARA_T *DpdPcfeCustomData_p; |
| 331 | #if IS_3G_MIPI_SUPPORT |
| 332 | const UL1_UMTS_MIPI_TPC_T **DpdTpcTable_p; |
| 333 | #endif |
| 334 | DPD_ENABLE_E dpd_enable; |
| 335 | } Ul1CustomDynamicInitUmtsDpdfactoryData; |
| 336 | |
| 337 | /***************************************************************************** |
| 338 | * Typedef : Ul1CustomDynamicInitUmtsTxPrachTmCompData |
| 339 | * Group : Real target, Internals, UL1D common operation |
| 340 | * Type : structure |
| 341 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 342 | * 3G Tx PRACH TM comp. data |
| 343 | *****************************************************************************/ |
| 344 | typedef struct |
| 345 | { |
| 346 | /* 3G TX PRACH TM comp data array */ |
| 347 | U_sPARACHTMCOMPDATA *TxPrachTmComp[UL1CUSTOM_MAX_RF_SUPPORT_BAND_NUM]; |
| 348 | |
| 349 | } Ul1CustomDynamicInitUmtsTxPrachTmCompData; |
| 350 | |
| 351 | /***************************************************************************** |
| 352 | * Typedef : Ul1CustomDynamicInitUmtsTempDac |
| 353 | * Group : Real target, Internals, UL1D common operation |
| 354 | * Type : structure |
| 355 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 356 | * 3G temperature DAC data |
| 357 | *****************************************************************************/ |
| 358 | typedef struct |
| 359 | { |
| 360 | /* 3G Temperature DAC */ |
| 361 | kal_uint16 *UTempDac; |
| 362 | |
| 363 | } Ul1CustomDynamicInitUmtsTempDac; |
| 364 | |
| 365 | /***************************************************************************** |
| 366 | * Typedef : Ul1CustomDynamicInitUmtsAfcDac |
| 367 | * Group : Real target, Internals, UL1D common operation |
| 368 | * Type : structure |
| 369 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 370 | * 3G temperature DAC data |
| 371 | *****************************************************************************/ |
| 372 | typedef struct |
| 373 | { |
| 374 | /* 3G AFC DAC */ |
| 375 | U_sAFCDACDATA *UAfcDac; |
| 376 | |
| 377 | } Ul1CustomDynamicInitUmtsAfcDac; |
| 378 | |
| 379 | /***************************************************************************** |
| 380 | * Typedef : Ul1CustomDynamicInitUmtsAfcCap |
| 381 | * Group : Real target, Internals, UL1D common operation |
| 382 | * Type : structure |
| 383 | * Description : Internal typedef used by UL1 Custom dynamic initialization data |
| 384 | * 3G temperature DAC data |
| 385 | *****************************************************************************/ |
| 386 | typedef struct |
| 387 | { |
| 388 | /* 3G AFC CAP */ |
| 389 | U_sAFCCAPDATA *UAfcCap; |
| 390 | |
| 391 | } Ul1CustomDynamicInitUmtsAfcCap; |
| 392 | |
| 393 | #if (IS_3G_MIPI_SUPPORT) |
| 394 | typedef struct |
| 395 | { |
| 396 | MIPI_Setting mipiSetting; |
| 397 | const UL1_MIPI_EVENT_TABLE_T* const* rxEventTable_p; |
| 398 | const UL1_MIPI_DATA_SUBBAND_TABLE_T* const* rxDataTable_p; |
| 399 | const UL1_MIPI_EVENT_TABLE_T* const* txEventTable_p; |
| 400 | const UL1_MIPI_DATA_SUBBAND_TABLE_T* const* txDataTable_p; |
| 401 | const UL1_UMTS_MIPI_TPC_T* const* tpcTable_p; |
| 402 | const UL1_MIPI_DATA_TABLE_T* const* asmIsoTable_p; |
| 403 | }Ul1CustomDynamicInitMipiData; |
| 404 | |
| 405 | typedef struct |
| 406 | { |
| 407 | const UL1_MIPI_SIMPLE_EVENT_TABLE_T* const* txEventTable_p; |
| 408 | const UL1_MIPI_SIMPLE_DATA_SUBBAND_TABLE_T* const* txDataTable_p; |
| 409 | const UL1_MIPI_SIMPLE_EVENT_TABLE_T* const* tpcEventTable_p; |
| 410 | const UL1_MIPI_SIMPLE_DATA_SUBBAND_TABLE_T* const* tpcDataTable_p; |
| 411 | } Ul1CustomDynamicInitMipiEtmData; |
| 412 | |
| 413 | #endif |
| 414 | |
| 415 | #if (IS_3G_DAT_UL1_CUSTOM_SUPPORT) |
| 416 | |
| 417 | #if !IS_3G_GEN97_DAT_SUPPORT |
| 418 | typedef struct |
| 419 | { |
| 420 | const UMTS_CUSTOM_DAT_FE_ROUTE_DATABASE_T *dat_fe_route; |
| 421 | }Ul1CustomDynamicDatRoute; |
| 422 | #endif |
| 423 | |
| 424 | typedef struct |
| 425 | { |
| 426 | UMTS_CUSTOM_DAT_FEATURE_BY_RAT_T dat_feature_byRat; |
| 427 | }Ul1CustomDynamicDatFeatureByRat; |
| 428 | |
| 429 | #if !IS_3G_UDAT_SUPPORT |
| 430 | typedef struct |
| 431 | { |
| 432 | const UMTS_CUSTOM_DAT_FE_CAT_A_T *dat_cat_a_fe_db; |
| 433 | const UMTS_CUSTOM_DAT_FE_CAT_B_T *dat_cat_b_fe_db; |
| 434 | }Ul1CustomDynamicDatDb; |
| 435 | |
| 436 | #if (IS_3G_MIPI_SUPPORT) |
| 437 | typedef struct |
| 438 | { |
| 439 | const UL1_MIPI_EVENT_TABLE_T* const* catA_eventTable_p; |
| 440 | const UL1_MIPI_DATA_SUBBAND_TABLE_T* const* catA_dataTable_p; |
| 441 | const UL1_MIPI_EVENT_TABLE_T* const* catB_eventTable_p; |
| 442 | const UL1_MIPI_DATA_SUBBAND_TABLE_T* const* catB_dataTable_p; |
| 443 | }Ul1CustomDynamicDatMipiData; |
| 444 | #endif |
| 445 | #endif /*!IS_3G_UDAT_SUPPORT*/ |
| 446 | #endif |
| 447 | |
| 448 | #if (IS_3G_TAS_UL1_CUSTOM_SUPPORT) |
| 449 | |
| 450 | #if IS_3G_GEN97_TAS_SUPPORT |
| 451 | typedef struct |
| 452 | { |
| 453 | const UMTS_CUSTOM_TAS_FE_ROUTE_DATA_T *tas_fe_route; |
| 454 | }Ul1CustomDynamicTasRoute; |
| 455 | #else |
| 456 | typedef struct |
| 457 | { |
| 458 | const UMTS_CUSTOM_TAS_FE_ROUTE_DATABASE_T *tas_fe_route; |
| 459 | }Ul1CustomDynamicTasRoute; |
| 460 | #endif |
| 461 | |
| 462 | typedef struct |
| 463 | { |
| 464 | const UMTS_CUSTOM_TAS_FE_CAT_A_T *tas_cat_a_fe_db; |
| 465 | const UMTS_CUSTOM_TAS_FE_CAT_B_T *tas_cat_b_fe_db; |
| 466 | const UMTS_CUSTOM_TAS_FE_CAT_C_T *tas_cat_c_fe_db; |
| 467 | }Ul1CustomDynamicTasDb; |
| 468 | |
| 469 | typedef struct |
| 470 | { |
| 471 | UMTS_CUSTOM_TAS_FEATURE_BY_RAT_T tas_feature_byRat; |
| 472 | }Ul1CustomDynamicTasFeatureByRat; |
| 473 | |
| 474 | #if (IS_3G_MIPI_SUPPORT) |
| 475 | typedef struct |
| 476 | { |
| 477 | const UL1_MIPI_EVENT_TABLE_T* const* catA_eventTable_p; |
| 478 | const UL1_MIPI_DATA_SUBBAND_TABLE_T* const* catA_dataTable_p; |
| 479 | const UL1_MIPI_EVENT_TABLE_T* const* catB_eventTable_p; |
| 480 | const UL1_MIPI_DATA_SUBBAND_TABLE_T* const* catB_dataTable_p; |
| 481 | const UL1_MIPI_EVENT_TABLE_T* const* catC_eventTable_p; |
| 482 | const UL1_MIPI_DATA_SUBBAND_TABLE_T* const* catC_dataTable_p; |
| 483 | }Ul1CustomDynamicTasMipiData; |
| 484 | #endif |
| 485 | |
| 486 | #if IS_3G_TAS_TST_SUPPORT |
| 487 | typedef struct |
| 488 | { |
| 489 | const UMTS_CUSTOM_TAS_TST_FE_ROUTE_DATABASE_T *tas_tst_fe_route; |
| 490 | }Ul1CustomDynamicTasTstRoute; |
| 491 | #endif |
| 492 | #endif |
| 493 | |
| 494 | #if IS_3G_TAS_INHERIT_4G_ANT |
| 495 | typedef struct |
| 496 | { |
| 497 | const UMTS_CUSTOM_TAS_INHERIT_LTE_BAND_T* const* inheritLteAntTable_p; |
| 498 | }Ul1CustomDynamicTasInheritLteAnt; |
| 499 | #endif |
| 500 | |
| 501 | #if IS_3G_REMOVE_MIPI |
| 502 | typedef struct |
| 503 | { |
| 504 | kal_bool xPMU_PA_CONTROL; |
| 505 | kal_bool umtsRxDAlwaysOn; |
| 506 | kal_bool ultra_low_cost_solution; |
| 507 | kal_uint32 umtsPADriftCompensation; |
| 508 | kal_uint8 PA_section; |
| 509 | kal_bool band5_and_band6_indicator; |
| 510 | #if IS_3G_B5_AND_B19_INDICATOR_SUPPORT |
| 511 | kal_bool band5_and_band19_indicator; |
| 512 | kal_bool disable_band5_indicator; |
| 513 | #endif |
| 514 | U_sUl1dRfBsiBpiTiming RfBpiTiming; |
| 515 | U_sUl1dRfPaControlTiming RfPaControlTiming; |
| 516 | #if defined (__UL1_HS_PLUS_PLATFORM__) |
| 517 | U_sUl1dMprBackOff umtsMprBackOff; |
| 518 | #endif |
| 519 | #if IS_3G_MIPI_SUPPORT |
| 520 | U_sUl1dRfMipiSetting umtsRfMipiSetting; |
| 521 | #endif |
| 522 | |
| 523 | }Ul1CustomDynamicRfParameter; |
| 524 | #else |
| 525 | typedef struct |
| 526 | { |
| 527 | kal_bool xPMU_PA_CONTROL; |
| 528 | kal_bool umtsRxDAlwaysOn; |
| 529 | kal_bool ultra_low_cost_solution; |
| 530 | kal_uint32 umtsPADriftCompensation; |
| 531 | kal_uint8 PA_section; |
| 532 | kal_bool band5_and_band6_indicator; |
| 533 | #if IS_3G_B5_AND_B19_INDICATOR_SUPPORT |
| 534 | kal_bool band5_and_band19_indicator; |
| 535 | kal_bool disable_band5_indicator; |
| 536 | #endif |
| 537 | U_sUl1dRfBsiBpiTiming RfBpiTiming; |
| 538 | U_sUl1dRfPaControlTiming RfPaControlTiming; |
| 539 | #if defined (__UL1_HS_PLUS_PLATFORM__) |
| 540 | U_sUl1dMprBackOff umtsMprBackOff; |
| 541 | #endif |
| 542 | #if IS_3G_MIPI_SUPPORT |
| 543 | //U_sUl1dRfMipiSetting umtsRfMipiSetting; |
| 544 | #endif |
| 545 | |
| 546 | }Ul1CustomDynamicRfParameter; |
| 547 | #endif |
| 548 | |
| 549 | #if IS_3G_ELNA_IDX_SUPPORT |
| 550 | typedef struct |
| 551 | { |
| 552 | UMTS_CUSTOM_ELNA_IDX_T umtsRxElnaIdxSetting; |
| 553 | }Ul1CustomDynamicElnaIdxData; |
| 554 | #endif |
| 555 | |
| 556 | #if IS_3G_RFEQ_COEF_SUBBAND_SUPPORT |
| 557 | typedef struct |
| 558 | { |
| 559 | const hs_dsch_rfeq_info_band_T* const* rfeqCoef_p; |
| 560 | }Ul1CustomDynamicRfeqCoefData; |
| 561 | #endif |
| 562 | |
| 563 | #if IS_3G_RFEQ_REAL_COEF_TEST |
| 564 | typedef struct |
| 565 | { |
| 566 | const URXDFE_REAL_RFEQ_CUSTOM_BAND_T* const* realRfeqCoef_p; |
| 567 | }Ul1CustomDynamicRealRfeqCoefData; |
| 568 | #endif |
| 569 | |
| 570 | #if IS_3G_FDD_INDICATION_FOR_AP_CLOCK_HOPPING_SUPPORT |
| 571 | typedef struct |
| 572 | { |
| 573 | UMTS_RF_INTERFERENCE_FREQUENCY_T umtsRfInterferenceFreq; |
| 574 | }Ul1CustomDynamicInterferenceFrequencyTable; |
| 575 | #endif |
| 576 | |
| 577 | /***************************************************************************** |
| 578 | * Typedef : Ul1CustomActionId |
| 579 | * Group : Real target, Internals, UL1D common operation |
| 580 | * Type : Enumeration |
| 581 | * Description : Internal typedef used by UL1 Custom action ID constant value |
| 582 | *****************************************************************************/ |
| 583 | typedef enum |
| 584 | { |
| 585 | UL1CUSTOM_NULL_ACTION_ID = UL1CUSTOM_NULL_ACTION, |
| 586 | UL1CUSTOM_BASE_PROC_ACTION_ID = UL1CUSTOM_NULL_ACTION_ID, |
| 587 | UL1CUSTOM_GPIO_DETECTION = UL1CUSTOM_GPIO_DETECTION_ID, |
| 588 | UL1CUSTOM_ADC_DETECTION = UL1CUSTOM_ADC_DETECTION_ID, |
| 589 | UL1CUSTOM_NVRAM_BARCODE_DETECTION = UL1CUSTOM_NVRAM_BARCODE_DETECTION_ID, |
| 590 | UL1CUSTOM_MAX_PROC_ACTIONS |
| 591 | |
| 592 | } Ul1CustomActionId; |
| 593 | |
| 594 | /***************************************************************************** |
| 595 | * Typedef : Ul1CustomDynamicInitResultRFParams |
| 596 | * Group : Real target, Internals, UL1D common operation |
| 597 | * Type : Enumeration |
| 598 | * Description : Internal typedef used by UL1 Custom Dynamic init debug |
| 599 | *****************************************************************************/ |
| 600 | typedef struct |
| 601 | { |
| 602 | /* BPI data allocation */ |
| 603 | U_sUl1dRfBpiData umtsPdata; |
| 604 | |
| 605 | /* RF Hign-band and Low-band indicator */ |
| 606 | U_sUl1dRfBandIndicator umtsBandIndicator; |
| 607 | |
| 608 | /* RX LNA port selection */ |
| 609 | U_sUl1dRfRxLnaPortSel umtsRxLnaPortSel; |
| 610 | |
| 611 | /* TX output path selection */ |
| 612 | U_sUl1dRfTxPathSel umtsTxPathSel; |
| 613 | |
| 614 | /* RXd Path Setting (Main/Diversity on off Switch) */ |
| 615 | U_sUl1dRxdPathSetting umtsRxdPathSetting; |
| 616 | |
| 617 | /* PA Drift Compensation (On/Off Switch Mask) */ |
| 618 | kal_uint32 umtsPADriftCompensation; |
| 619 | } Ul1CustomDynamicInitResultRFParams; |
| 620 | |
| 621 | /***************************************************************************** |
| 622 | * Typedef : Ul1CustomDynamicInitDebug |
| 623 | * Group : Real target, Internals, UL1D common operation |
| 624 | * Type : Enumeration |
| 625 | * Description : Internal typedef used by UL1 Custom Dynamic init debug |
| 626 | *****************************************************************************/ |
| 627 | typedef struct |
| 628 | { |
| 629 | kal_uint16 combined_config_index; |
| 630 | kal_uint8 first_config_index_base; |
| 631 | kal_uint8 second_config_index_base; |
| 632 | kal_uint8 third_config_index_base; |
| 633 | kal_int32 gpio_get_pin_rpc_status; |
| 634 | kal_uint32 gpio_return_pin_num[3]; |
| 635 | kal_uint32 gpio_pin_value[3]; |
| 636 | kal_uint32 gpio_combined_pin_value; |
| 637 | kal_int32 adc_get_ch_num_rpc_status; |
| 638 | DCL_STATUS adc_dcl_handle_status; |
| 639 | DCL_STATUS adc_cal_dcl_handle_status; |
| 640 | kal_uint32 adc_get_ch_num; |
| 641 | kal_uint32 adc_dac_read_result; |
| 642 | kal_uint32 adc_volt_translate_result; |
| 643 | kal_uint8 adc_volt_level; |
| 644 | kal_bool barcode_lid_read_status; |
| 645 | kal_uint8 barcode_digit_read_result; |
| 646 | kal_bool umts_tempdac_lid_write_status; |
| 647 | kal_bool umts_txrampdata_lid_write_status; |
| 648 | kal_bool umts_txpaoctlvl_lid_write_status; |
| 649 | kal_bool umts_rxpathloss_lid_write_status; |
| 650 | kal_bool umts_txprachtmcomp_lid_write_status; |
| 651 | kal_bool umts_rf_params_lid_write_status; |
| 652 | Ul1CustomDynamicInitResultRFParams custom_dynamic_init_result_params; |
| 653 | |
| 654 | } Ul1CustomDynamicInitDebug; |
| 655 | /*------------- Single Software Load for Multiple Components Compatible -------------*/ |
| 656 | |
| 657 | /***************************************************************************** |
| 658 | * Description : POC calibration global |
| 659 | *****************************************************************************/ |
| 660 | /************************************************************************************ |
| 661 | * Global Functions Prototype (Interface) |
| 662 | ************************************************************************************/ |
| 663 | /* Function Prototypes can be used by other files */ |
| 664 | void UL1D_RFC_SHARE_CW_INIT(void); |
| 665 | |
| 666 | /************************************************************************************ |
| 667 | * Global Variables extern (Interface) |
| 668 | ************************************************************************************/ |
| 669 | #if 0/* No more used */ |
| 670 | /* under construction !*/ |
| 671 | #endif |
| 672 | |
| 673 | #ifdef __MTK_TARGET__ |
| 674 | #if IS_3G_SAR_TX_POWER_OFFSET_CONDI_SUPPORT |
| 675 | extern const Ul1CustomDynamicSARBackoffData ul1CustomSarBackoffDataCondi[TPO_3G_TABLE_TYPE_NUM]; |
| 676 | extern kal_uint32 TPO_3G_TOTAL_TYPE_NUM; |
| 677 | #endif |
| 678 | #endif//__MTK_TARGET__ |
| 679 | |
| 680 | extern void UL1D_RF_DynamicCustomTable_Update(const Ul1CustomDynamicInitUmtsFeSettingData *RfFeRoute_array_ptr); |
| 681 | extern void UL1D_RF_DynamicSetRfParameter(U_sUl1dRfCustomInputData *dst, const Ul1CustomDynamicRfParameter *RfTiming_ptr ); |
| 682 | #if(IS_3G_RX_POWER_OFFSET_SUPPORT) |
| 683 | extern void UL1D_RF_DynamicRxPowerOffset_Update(U_sUl1dRfCustomInputData *dst, const Ul1CustomDynamicRpoData *source); |
| 684 | #endif |
| 685 | |
| 686 | #endif |