yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame^] | 1 | /******************************************************************************* |
| 2 | * Modification Notice: |
| 3 | * -------------------------- |
| 4 | * This software is modified by MediaTek Inc. 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 | * |
| 39 | * Filename: |
| 40 | * --------- |
| 41 | * ul1_option.h |
| 42 | * |
| 43 | * Project: |
| 44 | * -------- |
| 45 | * MT6268 Project |
| 46 | * |
| 47 | * Description: |
| 48 | * ------------ |
| 49 | * Define compile option for UL1A/UL1C. |
| 50 | * |
| 51 | * Author: |
| 52 | * ------- |
| 53 | * ------- |
| 54 | * |
| 55 | *============================================================================ |
| 56 | * HISTORY |
| 57 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 58 | *------------------------------------------------------------------------------ |
| 59 | * removed! |
| 60 | * removed! |
| 61 | * removed! |
| 62 | * |
| 63 | * removed! |
| 64 | * removed! |
| 65 | * removed! |
| 66 | * removed! |
| 67 | * |
| 68 | * removed! |
| 69 | * removed! |
| 70 | * removed! |
| 71 | * removed! |
| 72 | * |
| 73 | * removed! |
| 74 | * removed! |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * |
| 78 | * removed! |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * |
| 82 | * removed! |
| 83 | * removed! |
| 84 | * removed! |
| 85 | * |
| 86 | * removed! |
| 87 | * removed! |
| 88 | * |
| 89 | * removed! |
| 90 | * removed! |
| 91 | * removed! |
| 92 | * |
| 93 | * removed! |
| 94 | * removed! |
| 95 | * removed! |
| 96 | * |
| 97 | * removed! |
| 98 | * removed! |
| 99 | * removed! |
| 100 | * |
| 101 | * removed! |
| 102 | * removed! |
| 103 | * removed! |
| 104 | * |
| 105 | * removed! |
| 106 | * removed! |
| 107 | * removed! |
| 108 | * |
| 109 | * removed! |
| 110 | * removed! |
| 111 | * removed! |
| 112 | * |
| 113 | * removed! |
| 114 | * removed! |
| 115 | * |
| 116 | * removed! |
| 117 | * |
| 118 | * removed! |
| 119 | * removed! |
| 120 | * |
| 121 | * removed! |
| 122 | * removed! |
| 123 | * |
| 124 | * removed! |
| 125 | * removed! |
| 126 | * removed! |
| 127 | * |
| 128 | * removed! |
| 129 | * removed! |
| 130 | * removed! |
| 131 | * |
| 132 | * removed! |
| 133 | * removed! |
| 134 | * |
| 135 | * removed! |
| 136 | * |
| 137 | * removed! |
| 138 | * removed! |
| 139 | * |
| 140 | * removed! |
| 141 | * |
| 142 | * removed! |
| 143 | * removed! |
| 144 | * removed! |
| 145 | * |
| 146 | * removed! |
| 147 | * removed! |
| 148 | * removed! |
| 149 | * |
| 150 | * removed! |
| 151 | * removed! |
| 152 | * removed! |
| 153 | * |
| 154 | * removed! |
| 155 | * removed! |
| 156 | * removed! |
| 157 | * |
| 158 | * removed! |
| 159 | * removed! |
| 160 | * removed! |
| 161 | * |
| 162 | * removed! |
| 163 | * removed! |
| 164 | * removed! |
| 165 | * |
| 166 | * removed! |
| 167 | * removed! |
| 168 | * removed! |
| 169 | * |
| 170 | * removed! |
| 171 | * removed! |
| 172 | * removed! |
| 173 | * |
| 174 | * removed! |
| 175 | * removed! |
| 176 | * removed! |
| 177 | * |
| 178 | * removed! |
| 179 | * removed! |
| 180 | * removed! |
| 181 | * |
| 182 | * removed! |
| 183 | * removed! |
| 184 | * removed! |
| 185 | * |
| 186 | * removed! |
| 187 | * removed! |
| 188 | * removed! |
| 189 | * |
| 190 | * removed! |
| 191 | * removed! |
| 192 | * removed! |
| 193 | * |
| 194 | * removed! |
| 195 | * removed! |
| 196 | * removed! |
| 197 | * |
| 198 | * removed! |
| 199 | * removed! |
| 200 | * removed! |
| 201 | * |
| 202 | * removed! |
| 203 | * removed! |
| 204 | * removed! |
| 205 | * |
| 206 | * removed! |
| 207 | * removed! |
| 208 | * removed! |
| 209 | * |
| 210 | * removed! |
| 211 | * removed! |
| 212 | * removed! |
| 213 | * removed! |
| 214 | * removed! |
| 215 | * |
| 216 | * removed! |
| 217 | * removed! |
| 218 | * removed! |
| 219 | * |
| 220 | * removed! |
| 221 | * removed! |
| 222 | * removed! |
| 223 | * |
| 224 | * removed! |
| 225 | * removed! |
| 226 | * removed! |
| 227 | * |
| 228 | * removed! |
| 229 | * removed! |
| 230 | * removed! |
| 231 | * |
| 232 | * removed! |
| 233 | * removed! |
| 234 | * removed! |
| 235 | * |
| 236 | * removed! |
| 237 | * removed! |
| 238 | * removed! |
| 239 | * |
| 240 | * removed! |
| 241 | * removed! |
| 242 | * |
| 243 | * |
| 244 | * removed! |
| 245 | * removed! |
| 246 | * |
| 247 | * |
| 248 | * |
| 249 | *------------------------------------------------------------------------------ |
| 250 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 251 | *============================================================================ |
| 252 | ****************************************************************************/ |
| 253 | |
| 254 | |
| 255 | #ifndef UL1_OPTION_H |
| 256 | #define UL1_OPTION_H |
| 257 | |
| 258 | //#define __UL1C_R5R6_CODE__ |
| 259 | //#define __UL1_FAST_ABORT_SUPPORT__ |
| 260 | |
| 261 | #if defined(__MTK_TARGET__) |
| 262 | |
| 263 | #if (defined __MD93__) |
| 264 | #define __TASOLD_SUPPORT__ |
| 265 | #endif |
| 266 | // one of the other will be enabled . both can not |
| 267 | #if (defined __MD95__) || (defined __MD97__) || (defined __MD97P__) |
| 268 | #define __UTAS_SUPPORT__ |
| 269 | #endif |
| 270 | |
| 271 | #if (defined __MD97__) || (defined __MD97P__) |
| 272 | #define IS_UL1C_DYNAMIC_ANTENNA_TUNING_SUPPORT 1 /*Gen97 DAT is default enable*/ |
| 273 | #else |
| 274 | #define IS_UL1C_DYNAMIC_ANTENNA_TUNING_SUPPORT defined(__DYNAMIC_ANTENNA_TUNING__) |
| 275 | #endif |
| 276 | |
| 277 | #endif |
| 278 | |
| 279 | #if defined(__MTK_TARGET__) |
| 280 | #if ( IS_3G_CHIP_MT6297 || IS_3G_CHIP_MT3967 || IS_3G_CHIP_MT6779) |
| 281 | #define UL1_GNSS_MD_TIME_SYNC_SUPPORT 0 |
| 282 | #elif defined(__GNSS_MD_TIME_SYNC__) |
| 283 | #define UL1_GNSS_MD_TIME_SYNC_SUPPORT 1 |
| 284 | #else |
| 285 | #define UL1_GNSS_MD_TIME_SYNC_SUPPORT 0 |
| 286 | #endif |
| 287 | #endif |
| 288 | |
| 289 | #if defined(L1_SIM) |
| 290 | #define UL1_GNSS_MD_TIME_SYNC_SUPPORT 1 |
| 291 | #endif |
| 292 | |
| 293 | #if defined(__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__) || defined(__L1_GPS_REF_TIME_SUPPORT__) |
| 294 | #define __UL1_GPS_FRAME_SYNC_SUPPORT__ |
| 295 | #endif |
| 296 | |
| 297 | // For RAs change , this flag does not depend one amy other flag/HW |
| 298 | //#ifndef __L1_STANDALONE__ |
| 299 | //#define __RAS_SUPPORT__ |
| 300 | //#endif |
| 301 | |
| 302 | #if defined( __GEMINI__ ) && defined ( __UMTS_RAT__ ) |
| 303 | #define __UL1_GEMINI__ |
| 304 | /*As part of GEMINI Flag Cleanup __GEMINI_GSM__ and __GEMINI_MONITOR_PAGE_DURING_TRANSFER__ are replaced with __GEMINI__. |
| 305 | __GEMINI_GSM__ can be replaced with __GEMINI__, but __GEMINI_MONITOR_PAGE_DURING_TRANSFER__ can be replaced with __GEMINI__ only provided that GEMINI V2 is always enabled and GEMINI 1 alone is not required. |
| 306 | So with this change for UL1 __UL1_GEMINI__ is same as __UL1_GEMINI_2_0__*/ |
| 307 | //#ifdef __GEMINI_MONITOR_PAGE_DURING_TRANSFER__ |
| 308 | #define __UL1_GEMINI_2_0__ |
| 309 | //#endif /* __GEMINI_MONITOR_PAGE_DURING_TRANSFER__ */ |
| 310 | |
| 311 | #endif /* __GEMINI__ && __UMTS_RAT__ */ |
| 312 | |
| 313 | #ifdef __GEMINI_WCDMA__ |
| 314 | #define __UL1_GEMINI_WCDMA__ |
| 315 | #endif /* __GEMINI_WCDMA__ */ |
| 316 | |
| 317 | #ifdef __UMTS_R8__ |
| 318 | /* new DL data buffer is only applied on 6280 and later projects. |
| 319 | If ul1d_p is built by other compile option, we should change the condition. */ |
| 320 | #define __UL1_NEW_DL_DATA_BUFFER__ |
| 321 | |
| 322 | #ifdef __DYNAMIC_SWITCH_CACHEABILITY__ |
| 323 | #define __UL1_DL_DATA_DYNAMIC_CACHEABILITY__ |
| 324 | #endif /*__DYNAMIC_SWITCH_CACHEABILITY__*/ |
| 325 | |
| 326 | #endif /*__UMTS_R8__*/ |
| 327 | |
| 328 | |
| 329 | #if defined( __UL1_GEMINI__ ) && defined( __UMTS_R8__ ) && defined( __MODIFY_CTCH_RECEPTION_PRIO__ ) |
| 330 | #define __CBS_IMPROVEMENT__ |
| 331 | #endif |
| 332 | |
| 333 | |
| 334 | #if defined(__HSDPA_SUPPORT__) && defined(__UMTS_R8__) |
| 335 | /* HSPASYS Control is only applied on 6280 or later projectes. */ |
| 336 | #define __UL1_HSPASYS_CONTROL__ |
| 337 | #endif /*__HSDPA_SUPPORT__ && __UMTS_R8__*/ |
| 338 | |
| 339 | |
| 340 | #ifdef __UMTS_R9__ |
| 341 | //Disable R9 compile option flag in UL1AC internally since there is no R9R10 support request, it can help reduce the EMI cost |
| 342 | //#define __UMTS_R9_UL1__ |
| 343 | #endif /* __UMTS_R9__ */ |
| 344 | |
| 345 | #ifdef __UMTS_R10__ |
| 346 | //Disable R10 compile option flag in UL1AC internally since there is no R9R10 support request, it can help reduce the EMI cost |
| 347 | //#define __UMTS_R10_UL1__ |
| 348 | #endif /* __UMTS_R10__ */ |
| 349 | |
| 350 | //Disable __L1_INTERNAL_TEST__ flag to reduce target code size. It can be enabled while carrying on Inject String Commands for internal testing only. |
| 351 | //#define __L1_INTERNAL_TEST__ |
| 352 | |
| 353 | #define __UL1_RF_TEMPERATURE_SUPPORT__ |
| 354 | |
| 355 | #define __SMART_CS_3G_FDD__ |
| 356 | #define __SMART_CM_3G_FDD__ |
| 357 | //[ALPS04720723]: Disabling 5M filter |
| 358 | //#define __5M_FILTER__ |
| 359 | //#define __SMART_CM_FORCE_SWITCH__ |
| 360 | #endif |
| 361 | |