• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 // Copyright (C) 2022 Beken Corporation
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef VND_CAL_H
16 #define VND_CAL_H
17 
18 
19 #include "bk_arm_arch.h"
20 #include "bk_misc.h"
21 
22 typedef struct tmp_pwr_st {//do
23     unsigned trx0x0c_12_15 : 4; //not used on BK7231N actually
24     signed p_index_delta : 6;
25     signed p_index_delta_g : 6;
26     signed p_index_delta_ble : 6;
27     signed xtal_c_dlta : 8;
28 } TMP_PWR_ST;
29 
30 typedef struct txpwr_st {
31     UINT8 value;
32 } TXPWR_ST, *TXPWR_PTR;
33 
34 void vnd_cal_overlay(void);
35 
36 //typedef void (*hook_function_t)(void);
37 
38 extern void vnd_cal_txpwr_tab_def_b_overlay(TXPWR_ST *txpwr_tab_def_ptr);
39 extern void vnd_cal_txpwr_tab_def_g_overlay(TXPWR_ST *txpwr_tab_def_ptr);
40 extern void vnd_cal_txpwr_tab_def_n40_overlay(TXPWR_ST *txpwr_tab_def_ptr);
41 extern void vnd_cal_txpwr_tab_def_ble_overlay(TXPWR_ST *txpwr_tab_def_ptr);
42 extern void vnd_cal_tmp_pwr_tab_overlay(TMP_PWR_ST *tmp_pwr_tab_def_ptr);
43 extern void vnd_cal_gxtal_overlay(uint32 overlay_xtal);
44 extern void vnd_cal_gcmtag_overlay(uint32 overlay_cmtag);
45 extern void vnd_cal_pwr_shift_b_tab_overlay(INT16 *pwr_shift_b_def_ptr);
46 extern void vnd_cal_pwr_shift_g_tab_overlay(INT16 *pwr_shift_g_def_ptr);
47 extern void vnd_cal_pwr_shift_n_tab_overlay(INT16 *pwr_shift_n_def_ptr);
48 extern void vnd_cal_pwr_shift_n40_tab_overlay(INT16 *pwr_shift_n40_def_ptr);
49 extern void vnd_cal_pwr_gain_base_ble_overlay(uint32 pwr_gain_base_ble_value);
50 extern void vnd_cal_set_ble_pwr_level(uint8 level);
51 #endif