10ac80e05SPing-Ke Shih /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 20ac80e05SPing-Ke Shih /* Copyright(c) 2019-2022 Realtek Corporation 30ac80e05SPing-Ke Shih */ 40ac80e05SPing-Ke Shih 50ac80e05SPing-Ke Shih #ifndef __RTW89_8852C_H__ 60ac80e05SPing-Ke Shih #define __RTW89_8852C_H__ 70ac80e05SPing-Ke Shih 80ac80e05SPing-Ke Shih #include "core.h" 90ac80e05SPing-Ke Shih 10a82174c6SPing-Ke Shih #define RF_PATH_NUM_8852C 2 11e885871eSZong-Zhe Yang #define BB_PATH_NUM_8852C 2 12a82174c6SPing-Ke Shih 13ea372064SPing-Ke Shih struct rtw8852c_u_efuse { 14ea372064SPing-Ke Shih u8 rsvd[0x38]; 15ea372064SPing-Ke Shih u8 mac_addr[ETH_ALEN]; 16ea372064SPing-Ke Shih }; 17ea372064SPing-Ke Shih 18ea372064SPing-Ke Shih struct rtw8852c_e_efuse { 19ea372064SPing-Ke Shih u8 mac_addr[ETH_ALEN]; 20ea372064SPing-Ke Shih }; 21ea372064SPing-Ke Shih 22ea372064SPing-Ke Shih struct rtw8852c_tssi_offset { 23ea372064SPing-Ke Shih u8 cck_tssi[TSSI_CCK_CH_GROUP_NUM]; 24ea372064SPing-Ke Shih u8 bw40_tssi[TSSI_MCS_2G_CH_GROUP_NUM]; 25ea372064SPing-Ke Shih u8 rsvd[7]; 26ea372064SPing-Ke Shih u8 bw40_1s_tssi_5g[TSSI_MCS_5G_CH_GROUP_NUM]; 27ea372064SPing-Ke Shih } __packed; 28ea372064SPing-Ke Shih 29ea372064SPing-Ke Shih struct rtw8852c_efuse { 30ea372064SPing-Ke Shih u8 rsvd[0x210]; 31ea372064SPing-Ke Shih struct rtw8852c_tssi_offset path_a_tssi; 32ea372064SPing-Ke Shih u8 rsvd1[10]; 33ea372064SPing-Ke Shih struct rtw8852c_tssi_offset path_b_tssi; 34ea372064SPing-Ke Shih u8 rsvd2[94]; 35ea372064SPing-Ke Shih u8 channel_plan; 36ea372064SPing-Ke Shih u8 xtal_k; 37ea372064SPing-Ke Shih u8 rsvd3; 38ea372064SPing-Ke Shih u8 iqk_lck; 39ea372064SPing-Ke Shih u8 rsvd4[5]; 40ea372064SPing-Ke Shih u8 reg_setting:2; 41ea372064SPing-Ke Shih u8 tx_diversity:1; 42ea372064SPing-Ke Shih u8 rx_diversity:2; 43ea372064SPing-Ke Shih u8 ac_mode:1; 44ea372064SPing-Ke Shih u8 module_type:2; 45ea372064SPing-Ke Shih u8 rsvd5; 46ea372064SPing-Ke Shih u8 shared_ant:1; 47ea372064SPing-Ke Shih u8 coex_type:3; 48ea372064SPing-Ke Shih u8 ant_iso:1; 49ea372064SPing-Ke Shih u8 radio_on_off:1; 50ea372064SPing-Ke Shih u8 rsvd6:2; 51ea372064SPing-Ke Shih u8 eeprom_version; 52ea372064SPing-Ke Shih u8 customer_id; 53ea372064SPing-Ke Shih u8 tx_bb_swing_2g; 54ea372064SPing-Ke Shih u8 tx_bb_swing_5g; 55ea372064SPing-Ke Shih u8 tx_cali_pwr_trk_mode; 56ea372064SPing-Ke Shih u8 trx_path_selection; 57ea372064SPing-Ke Shih u8 rfe_type; 58ea372064SPing-Ke Shih u8 country_code[2]; 59ea372064SPing-Ke Shih u8 rsvd7[3]; 60ea372064SPing-Ke Shih u8 path_a_therm; 61ea372064SPing-Ke Shih u8 path_b_therm; 62e6b17cbdSPing-Ke Shih u8 rsvd8[2]; 63e6b17cbdSPing-Ke Shih u8 rx_gain_2g_ofdm; 64e6b17cbdSPing-Ke Shih u8 rsvd9; 65e6b17cbdSPing-Ke Shih u8 rx_gain_2g_cck; 66e6b17cbdSPing-Ke Shih u8 rsvd10; 67e6b17cbdSPing-Ke Shih u8 rx_gain_5g_low; 68e6b17cbdSPing-Ke Shih u8 rsvd11; 69e6b17cbdSPing-Ke Shih u8 rx_gain_5g_mid; 70e6b17cbdSPing-Ke Shih u8 rsvd12; 71e6b17cbdSPing-Ke Shih u8 rx_gain_5g_high; 72e6b17cbdSPing-Ke Shih u8 rsvd13[35]; 73ea372064SPing-Ke Shih u8 bw40_1s_tssi_6g_a[TSSI_MCS_6G_CH_GROUP_NUM]; 74e6b17cbdSPing-Ke Shih u8 rsvd14[10]; 75ea372064SPing-Ke Shih u8 bw40_1s_tssi_6g_b[TSSI_MCS_6G_CH_GROUP_NUM]; 76*e102ff4bSPing-Ke Shih u8 rsvd15[94]; 77*e102ff4bSPing-Ke Shih u8 rx_gain_6g_l0; 78*e102ff4bSPing-Ke Shih u8 rsvd16; 79*e102ff4bSPing-Ke Shih u8 rx_gain_6g_l1; 80*e102ff4bSPing-Ke Shih u8 rsvd17; 81*e102ff4bSPing-Ke Shih u8 rx_gain_6g_m0; 82*e102ff4bSPing-Ke Shih u8 rsvd18; 83*e102ff4bSPing-Ke Shih u8 rx_gain_6g_m1; 84*e102ff4bSPing-Ke Shih u8 rsvd19; 85*e102ff4bSPing-Ke Shih u8 rx_gain_6g_h0; 86*e102ff4bSPing-Ke Shih u8 rsvd20; 87*e102ff4bSPing-Ke Shih u8 rx_gain_6g_h1; 88*e102ff4bSPing-Ke Shih u8 rsvd21; 89*e102ff4bSPing-Ke Shih u8 rx_gain_6g_uh0; 90*e102ff4bSPing-Ke Shih u8 rsvd22; 91*e102ff4bSPing-Ke Shih u8 rx_gain_6g_uh1; 92*e102ff4bSPing-Ke Shih u8 rsvd23; 93ea372064SPing-Ke Shih u8 channel_plan_6g; 94*e102ff4bSPing-Ke Shih u8 rsvd24[71]; 95ea372064SPing-Ke Shih union { 96ea372064SPing-Ke Shih struct rtw8852c_u_efuse u; 97ea372064SPing-Ke Shih struct rtw8852c_e_efuse e; 98ea372064SPing-Ke Shih }; 99ea372064SPing-Ke Shih } __packed; 100ea372064SPing-Ke Shih 1010ac80e05SPing-Ke Shih extern const struct rtw89_chip_info rtw8852c_chip_info; 1020ac80e05SPing-Ke Shih 1030ac80e05SPing-Ke Shih #endif 104