• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., Ltd. All rights reserved.
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 __RF_CONFIG_H
16 #define __RF_CONFIG_H
17 
18 #include "reg_wlan_rf.h"
19 #include "reg_bt_rf.h"
20 #include "reg_wcnaon.h"
21 
22 extern uint32_t wifi_rxgain_table_24g[48][4];
23 extern uint32_t wifi_rxgain_table_5g[32][4];
24 extern uint32_t wifi_txgain_table[32];
25 extern uint32_t bt_rxgain_table[16][4];
26 extern uint32_t bt_txgain_table[16][2];
27 
28 extern uint32_t backup_wifi_rxgain_table_24g[48][4];
29 extern uint32_t backup_wifi_rxgain_table_5g[32][4];
30 extern uint32_t backup_wifi_txgain_table[32];
31 extern uint32_t backup_bt_rxgain_table[16][4];
32 extern uint32_t backup_bt_txgain_table[16][2];
33 
34 extern void wlan_rf_config(uint8_t band);
35 extern void bt_rf_config(void);
36 extern void common_rf_config(void);
37 extern void bt_only_mdm_config(void);
38 extern void bt_combo_mdm_config(void);
39 extern void init_aon_ram(void);
40 extern void update_rxgain_table(uint32_t wifi_rxgain_2g4_addr, uint32_t wifi_rxgain_5g_addr);
41 
42 
43 #endif
44