| /***************************************************************************** |
| * 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) 2006 |
| * |
| * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| * |
| * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| * |
| * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| * |
| *****************************************************************************/ |
| |
| /***************************************************************************** |
| * |
| * Filename: |
| * --------- |
| * nvram_cust_pack.c |
| * |
| * Project: |
| * -------- |
| * MAUI |
| * |
| * Description: |
| * ------------ |
| * |
| * Author: |
| * ------- |
| * ------- |
| * |
| *============================================================================ |
| * HISTORY |
| * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *------------------------------------------------------------------------------ |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * |
| * removed! |
| * removed! |
| * |
| * |
| * removed! |
| * removed! |
| * |
| * |
| *------------------------------------------------------------------------------ |
| * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *============================================================================ |
| ****************************************************************************/ |
| #ifdef NVRAM_AUTO_GEN |
| #include "nvram_auto_gen.h" |
| #endif |
| |
| #include "kal_public_api.h" //MSBB change #include "kal_release.h" |
| #include "nvram_data_items.h" |
| #include "nvram_defs.h" |
| #include "nvram_editor_data_item.h" |
| #include "ul1_nvram_def.h" |
| #include "ul1_nvram_editor.h" // LID struct definition |
| #include "l4_nvram_editor.h" |
| |
| #if defined(__MMI_FMI__) |
| #include "nvram_user_defs.h" |
| #include "custom_nvram_editor_data_item.h" |
| #include "custom_mmi_default_value.h" |
| |
| #endif |
| |
| #ifdef __PS_SERVICE__ |
| #include "custom_gprs_pdp_default_qos_config.h" // Carlson, for PS_QOS_PROFILE_DEFAULT_REQ_XXX and PS_QOS_PROFILE_DEFAULT_MIN_XXX |
| #endif |
| |
| /* Add include statement above this line */ |
| #ifndef __OPTR_NONE__ |
| #include "op_nvram_common_config.h" |
| #endif |
| |
| #if !defined(NVRAM_NOT_PRESENT) && !defined(__L1_STANDALONE__) |
| /* |
| 3G multiband support |
| bit | 8 7 6 5 4 3 2 1 |
| |------------------------------------------- |
| byte 0 | VIII VII VI V IV III II I |
| |------------------------------------------- |
| byte 1 | X IX |
| |
| */ |
| typedef enum |
| { |
| Support_UMTS_BAND_I = 0x01, |
| Support_UMTS_BAND_II = 0x02, |
| Support_UMTS_BAND_III = 0x04, |
| Support_UMTS_BAND_IV = 0x08, |
| Support_UMTS_BAND_V = 0x10, |
| Support_UMTS_BAND_VI = 0x20, |
| Support_UMTS_BAND_VII = 0x40, |
| Support_UMTS_BAND_VIII = 0x80, |
| Support_UMTS_BAND_IX = 0x01, |
| Support_UMTS_BAND_X = 0x02, |
| Support_UMTS_BAND_XI = 0x04, |
| Support_UMTS_BAND_XII = 0x08, |
| Support_UMTS_BAND_XIII = 0x10, |
| Support_UMTS_BAND_XIV = 0x20, |
| Support_UMTS_BAND_XV = 0x40, |
| Support_UMTS_BAND_XVI = 0x80, |
| Support_UMTS_BAND_XVII = 0x01, |
| Support_UMTS_BAND_XVIII = 0x02, |
| Support_UMTS_BAND_XIX = 0x04, |
| Support_UMTS_BAND_XX = 0x08, |
| Support_UMTS_BAND_XXI = 0x10, |
| Support_UMTS_BAND_XXII = 0x20, |
| Support_UMTS_BAND_XXIII = 0x40, |
| Support_UMTS_BAND_XXIV = 0x80, |
| Support_UMTS_BAND_XXV = 0x01, |
| Support_UMTS_BAND_XXVI = 0x02, |
| Support_UMTS_BAND_XXVII = 0x04, |
| Support_UMTS_BAND_XXVIII = 0x08, |
| Support_UMTS_BAND_XXIX = 0x10, |
| Support_UMTS_BAND_XXX = 0x20, |
| Support_UMTS_BAND_XXXI = 0x40, |
| Support_UMTS_BAND_XXXII = 0x80 |
| }rac_multi_band_option_enum; |
| |
| //__MOBILE_BROADBAND_PROVISION_CONTEXT__ |
| #ifdef __MOBILE_BROADBAND_PROVISION_CONTEXT__ |
| nvram_ef_mobile_broadband_provision_context_struct const COMMON_NVRAM_EF_MOBILE_BROADBAND_PROVISION_CONTEXT_DEFAULT[] = |
| { |
| /* Example Entry 1: 46692, internet */ |
| { |
| 1, //kal_uint32 context_id; |
| 1, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "internet", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 1, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "46692", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 1 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 2: 46601, fetnet01 */ |
| { |
| 2, //kal_uint32 context_id; |
| 1, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "internet", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 1, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "46601", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 1 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 3: 46697, internet */ |
| { |
| 3, //kal_uint32 context_id; |
| 1, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "internet", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 1, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "46697", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 1 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 4: 46692, emome */ |
| { |
| 4, //kal_uint32 context_id; |
| 1, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "emome", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 1, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "46692" , //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 0 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 5: empty */ |
| { |
| 5, //kal_uint32 context_id; |
| 1, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "vibo", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 0, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "46689", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 1 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 6: empty */ |
| { |
| 6, //kal_uint32 context_id; |
| 0, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 0, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 0 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 7: empty */ |
| { |
| 7, //kal_uint32 context_id; |
| 0, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 0, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 0 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 8: empty */ |
| { |
| 8, //kal_uint32 context_id; |
| 0, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 0, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 0 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 9: empty */ |
| { |
| 9, //kal_uint32 context_id; |
| 0, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 0, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 0 //0: empty, 1: occupied |
| }, |
| |
| /* Example Entry 10:empty */ |
| { |
| 10, //kal_uint32 context_id; |
| 0, //kal_uint8 context_type; //None, Internet, Vpn, Voice, VideoShare, Custom |
| "", //kal_uint8 access_string[100]; |
| "", //kal_uint8 user_name[32]; |
| "", //kal_uint8 pass_word[32]; |
| 0, //kal_uint8 compression; //None, Enable |
| 0, //kal_uint8 auth_type; //None, Pap, Chap, MsChapV2 |
| "", //kal_uint8 plmn_in_digit[7]; //Ex. '4','6','6','9','2','\0' |
| 0 //0: empty, 1: occupied |
| } |
| }; |
| #endif /* __MOBILE_BROADBAND_PROVISION_CONTEXT__ */ |
| |
| #if defined (__UL1_HS_PLUS_PLATFORM__) || defined (__UL1_HS_PLATFORM__) |
| #if defined (__MTK_UL1_FDD__) |
| /********************************************************/ |
| /* MT6573 3G RF Customization for Modem Bin Update Tool */ |
| /********************************************************/ |
| |
| #include "ul1d_custom_rf.h" |
| #include "ul1d_custom_rf_ca.h" |
| #include "ul1d_rf_public.h" |
| #include "ul1d_custom_mipi.h" |
| #include "ul1d_rf_common.h" |
| |
| #if defined (__MTK_UL1_FDD__) |
| nvram_ef_umts_tas_thr_struct const COMMON_NVRAM_EF_UL1_TAS_THRESHOLD_DEFAULT[NVRAM_EF_UL1_TAS_THRESHOLD_TOTAL] = |
| { |
| {2, 4, 2, 2, 10, 10, 30, 2} |
| }; |
| nvram_ef_umts_ul1_ras_struct const COMMON_NVRAM_EF_UL1_RAS_PARAMETER_DEFAULT[NVRAM_EF_UL1_RAS_PARAMETER_TOTAL]= |
| { |
| {KAL_TRUE, -90, -85, -15, -12, -100, -95, KAL_FALSE, 15, 8, 5, 10} |
| }; |
| nvram_ef_umts_ul1_vcr_struct const COMMON_NVRAM_EF_UL1_VCR_PARAMETER_DEFAULT[NVRAM_EF_UL1_VCR_PARAMETER_TOTAL]= |
| { |
| {200, -150, -70, 1, 100, 50, 2, 23, 14, 3} |
| }; |
| |
| #if (defined __MD95__)||(defined __MD97__)||(defined __MD97P__) |
| nvram_ef_umts_ul1_utas_struct const COMMON_NVRAM_EF_UL1_UTAS_PARAMETER_DEFAULT[NVRAM_EF_UL1_UTAS_PARAMETER_TOTAL]= |
| { |
| { |
| 20, /*meas_slot*/ |
| { |
| 600, |
| 1, |
| -2, |
| 2, |
| 1200, |
| -2, |
| 2, |
| KAL_TRUE, |
| 0, |
| 9, |
| 4, |
| 1, |
| 25600, |
| KAL_TRUE, |
| 0, |
| 1, |
| 25, |
| 10, |
| 25600, |
| |
| 600, |
| 2400, |
| -6, |
| 1, |
| -90, |
| 10000, |
| 30000, |
| 10000, |
| 1200, |
| -2, |
| 2, |
| |
| 600, |
| -119, |
| -6, |
| 5, |
| -90, |
| 10000, |
| 30000, |
| 10000, |
| 1200, |
| 2 |
| }, |
| { |
| -70, |
| -119, |
| 30000, |
| 10000, |
| 10000, |
| 20000, |
| 600, |
| -119, |
| 2400, |
| -6, |
| 1, |
| |
| KAL_TRUE, |
| 0, |
| 9, |
| 4, |
| 1, |
| 25600, |
| |
| KAL_TRUE, |
| 0, |
| 1, |
| 25, |
| 10, |
| 25600, |
| |
| 1200, |
| 1, |
| -2, |
| 2, |
| 2 |
| } |
| } |
| }; // nvram utas thresholds |
| #endif |
| #endif |
| |
| U_sUl1IotCustomSupportStruct const COMMON_NVRAM_EF_UL1_IOT_CUSTOMIZATION_DEFAULT[NVRAM_EF_UL1_IOT_CUSTOMIZATION_TOTAL]= |
| { |
| { |
| KAL_FALSE, /* ADAPT Customization */ |
| KAL_FALSE, /* reserved1 */ |
| KAL_FALSE, /* reserved2 */ |
| KAL_FALSE /* reserved3 */ |
| } |
| }; |
| |
| #endif /* #if defined (__MTK_UL1_FDD__) */ |
| #endif /* #if defined (__UL1_HS_PLUS_PLATFORM__) || defined (__UL1_HS_PLATFORM__) */ |
| |
| #if defined (__UL1_HS_PLUS_PLATFORM__) || defined (__UL1_HS_PLATFORM__) |
| nvram_ef_ul1_hspa_category_struct const COMMON_NVRAM_EF_UL1_HSPA_CATEGORY_DEFAULT[NVRAM_EF_UL1_HSPA_CATEGORY_TOTAL]= |
| { |
| {24, 7} |
| }; |
| #endif |
| |
| |
| #if defined (__MTK_UL1_FDD__) |
| nvram_ef_ul1_low_power_category_struct const COMMON_NVRAM_EF_UL1_LOW_POWER_DEFAULT[NVRAM_EF_UL1_LOW_POWER_TOTAL]= |
| { |
| { |
| KAL_TRUE, |
| KAL_TRUE, |
| KAL_FALSE |
| } |
| }; |
| #endif |
| |
| |
| #if defined (__UL1_PLATFORM__) |
| #if defined (__MTK_UL1_FDD__) |
| nvram_ef_ul1_rf_custpack_data_select_struct const COMMON_NVRAM_EF_UL1_RF_CUSTPACK_DATA_SELECT_DEFAULT[NVRAM_EF_UL1_RF_CUSTPACK_DATA_SELECT_TOTAL]= |
| { |
| {1} |
| }; |
| |
| #include "ul1d_custom_rf.h" |
| #define MAX_AB(a,b) (a>b)? a : b |
| #define MIN_AB(a,b) (a<b)? a : b |
| nvram_ef_ul1_rf_custom_data_struct const COMMON_NVRAM_EF_UL1_RF_CUSTOM_DATA_DEFAULT[NVRAM_EF_UL1_RF_CUSTOM_DATA_TOTAL]= |
| { |
| /* Default Band 1/2/5 */ |
| |
| { |
| /* Timing advance and postpone of RF window */ |
| MAX_AB(TC_SR1, TC_PR1), |
| MAX_AB(TC_ST1, TC_PT1), |
| MIN_AB(TC_SR3, TC_PR3), |
| MIN_AB(TC_ST3, TC_PT3), |
| /* Timing of PA control */ |
| MAX_OFFSET, |
| (MAX_OFFSET - VM_OFFSET), |
| (MAX_OFFSET - VBIAS_OFFSET), |
| (MAX_OFFSET - DC2DC_OFFSET), |
| (MAX_OFFSET - VGA_OFFSET), |
| /* PA section usage */ |
| PA_SECTION, |
| /* RF T/RX timing offset table */ |
| { |
| -TC_SR1, |
| -TC_SR2, |
| -TC_SR2B, |
| -TC_PR1, |
| -TC_PR2, |
| -TC_PR2B |
| }, |
| { |
| TC_SR3, |
| TC_PR3, |
| TC_PR3A |
| }, |
| { |
| -TC_ST1, |
| -TC_ST2, |
| -TC_ST2B, |
| -TC_PT1, |
| -TC_PT2, |
| -TC_PT2B, |
| 0, |
| 0 |
| }, |
| { |
| TC_ST3, |
| TC_PT3, |
| TC_PT3A, |
| 0, |
| 0 |
| }, |
| /* BPI data allocation */ |
| { |
| { /* FrequencyBand1 */ |
| { PDATA_BAND1_PR1, PDATA_BAND1_PR2, PDATA_BAND1_PR2B, PDATA_BAND1_PR3, PDATA_BAND1_PR3A } , /* RX */ |
| { PDATA_BAND1_PT1, PDATA_BAND1_PT2, PDATA_BAND1_PT2B, PDATA_BAND1_PT3, PDATA_BAND1_PT3A } , /* TX */ |
| }, /* FrequencyBand1 */ |
| { { PDATA_BAND1_PR1, PDATA_BAND1_PR2, PDATA_BAND1_PR2B, PDATA_BAND1_PR3, PDATA_BAND1_PR3A } , /* RX */ |
| { PDATA_BAND1_PT1, PDATA_BAND1_PT2, PDATA_BAND1_PT2B, PDATA_BAND1_PT3, PDATA_BAND1_PT3A } , /* TX */ |
| }, /* FrequencyBand2 */ |
| { { PDATA_BAND2_PR1, PDATA_BAND2_PR2, PDATA_BAND2_PR2B, PDATA_BAND2_PR3, PDATA_BAND2_PR3A } , /* RX */ |
| { PDATA_BAND2_PT1, PDATA_BAND2_PT2, PDATA_BAND2_PT2B, PDATA_BAND2_PT3, PDATA_BAND2_PT3A } , /* TX */ |
| }, /* FrequencyBand3 */ |
| { { PDATA_BAND3_PR1, PDATA_BAND3_PR2, PDATA_BAND3_PR2B, PDATA_BAND3_PR3, PDATA_BAND3_PR3A } , /* RX */ |
| { PDATA_BAND3_PT1, PDATA_BAND3_PT2, PDATA_BAND3_PT2B, PDATA_BAND3_PT3, PDATA_BAND3_PT3A } , /* TX */ |
| }, /* FrequencyBand4 */ |
| { { PDATA_BAND4_PR1, PDATA_BAND4_PR2, PDATA_BAND4_PR2B, PDATA_BAND4_PR3, PDATA_BAND4_PR3A } , /* RX */ |
| { PDATA_BAND4_PT1, PDATA_BAND4_PT2, PDATA_BAND4_PT2B, PDATA_BAND4_PT3, PDATA_BAND4_PT3A } , /* TX */ |
| }, /* FrequencyBand5 */ |
| { { PDATA_BAND5_PR1, PDATA_BAND5_PR2, PDATA_BAND5_PR2B, PDATA_BAND5_PR3, PDATA_BAND5_PR3A } , /* RX */ |
| { PDATA_BAND5_PT1, PDATA_BAND5_PT2, PDATA_BAND5_PT2B, PDATA_BAND5_PT3, PDATA_BAND5_PT3A } , /* TX */ |
| }, /* FrequencyBand6 */ |
| { { PDATA_BAND6_PR1, PDATA_BAND6_PR2, PDATA_BAND6_PR2B, PDATA_BAND6_PR3, PDATA_BAND6_PR3A } , /* RX */ |
| { PDATA_BAND6_PT1, PDATA_BAND6_PT2, PDATA_BAND6_PT2B, PDATA_BAND6_PT3, PDATA_BAND6_PT3A } , /* TX */ |
| }, /* FrequencyBand7 */ |
| { { PDATA_BAND7_PR1, PDATA_BAND7_PR2, PDATA_BAND7_PR2B, PDATA_BAND7_PR3, PDATA_BAND7_PR3A } , /* RX */ |
| { PDATA_BAND7_PT1, PDATA_BAND7_PT2, PDATA_BAND7_PT2B, PDATA_BAND7_PT3, PDATA_BAND7_PT3A } , /* TX */ |
| }, /* FrequencyBand8 */ |
| { { PDATA_BAND8_PR1, PDATA_BAND8_PR2, PDATA_BAND8_PR2B, PDATA_BAND8_PR3, PDATA_BAND8_PR3A } , /* RX */ |
| { PDATA_BAND8_PT1, PDATA_BAND8_PT2, PDATA_BAND8_PT2B, PDATA_BAND8_PT3, PDATA_BAND8_PT3A } , /* TX */ |
| }, /* FrequencyBand9 */ |
| { { PDATA_BAND9_PR1, PDATA_BAND9_PR2, PDATA_BAND9_PR2B, PDATA_BAND9_PR3, PDATA_BAND9_PR3A } , /* RX */ |
| { PDATA_BAND9_PT1, PDATA_BAND9_PT2, PDATA_BAND9_PT2B, PDATA_BAND9_PT3, PDATA_BAND9_PT3A } , /* TX */ |
| }, /* FrequencyBand10 */ |
| { { PDATA_BAND10_PR1, PDATA_BAND10_PR2, PDATA_BAND10_PR2B, PDATA_BAND10_PR3, PDATA_BAND10_PR3A } , /* RX */ |
| { PDATA_BAND10_PT1, PDATA_BAND10_PT2, PDATA_BAND10_PT2B, PDATA_BAND10_PT3, PDATA_BAND10_PT3A } , /* TX */ |
| } |
| }, |
| /* DC2DC level and VM setting table */ |
| { |
| DC2DC_H, |
| DC2DC_M, |
| DC2DC_L |
| }, |
| { |
| VM_H, |
| VM_M, |
| VM_L |
| }, |
| /* RF Hign-band and Low-band receivers configurations */ |
| UMTSBand1, |
| UMTSBand2, |
| UMTSBand5 |
| } |
| } |
| #endif /* #if defined (__MTK_UL1_FDD__) */ |
| |
| #endif /* #if defined (__UL1_PLATFORM__) */ |
| |
| #define NVRAM_INTERNAL_USE |
| |
| /* nvram default decleartion start */ |
| #if defined(__NVRAM_COMPRESS_SUPPORT__) && !defined(NVRAM_AUTO_GEN) |
| #include "nvram_cust_pack_default_value.c" |
| #else |
| #if defined(__MMI_FMI__) |
| #include "nvram_common_custpack.c" |
| #include "nvram_user_custpack.c" |
| #if defined(NEPTUNE_MMI) |
| #include "nvram_mmi_cache_cust_pack.h" |
| #endif |
| #if !defined(NVRAM_AUTO_GEN) |
| #include "nvram_custpack_table.c" |
| #endif |
| #endif /* __MMI_FMI__ */ |
| #endif /* __NVRAM_COMPRESS_SUPPORT__ */ |
| |
| #undef NVRAM_INTERNAL_USE |
| |
| #endif /* !defined(NVRAM_NOT_PRESENT) && !defined(__L1_STANDALONE__) */ |
| |