rtw8852c.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
  2. /* Copyright(c) 2019-2022 Realtek Corporation
  3. */
  4. #ifndef __RTW89_8852C_H__
  5. #define __RTW89_8852C_H__
  6. #include "core.h"
  7. #define RF_PATH_NUM_8852C 2
  8. #define BB_PATH_NUM_8852C 2
  9. struct rtw8852c_u_efuse {
  10. u8 rsvd[0x38];
  11. u8 mac_addr[ETH_ALEN];
  12. };
  13. struct rtw8852c_e_efuse {
  14. u8 mac_addr[ETH_ALEN];
  15. };
  16. struct rtw8852c_tssi_offset {
  17. u8 cck_tssi[TSSI_CCK_CH_GROUP_NUM];
  18. u8 bw40_tssi[TSSI_MCS_2G_CH_GROUP_NUM];
  19. u8 rsvd[7];
  20. u8 bw40_1s_tssi_5g[TSSI_MCS_5G_CH_GROUP_NUM];
  21. } __packed;
  22. struct rtw8852c_efuse {
  23. u8 rsvd[0x210];
  24. struct rtw8852c_tssi_offset path_a_tssi;
  25. u8 rsvd1[10];
  26. struct rtw8852c_tssi_offset path_b_tssi;
  27. u8 rsvd2[94];
  28. u8 channel_plan;
  29. u8 xtal_k;
  30. u8 rsvd3;
  31. u8 iqk_lck;
  32. u8 rsvd4[5];
  33. u8 reg_setting:2;
  34. u8 tx_diversity:1;
  35. u8 rx_diversity:2;
  36. u8 ac_mode:1;
  37. u8 module_type:2;
  38. u8 rsvd5;
  39. u8 shared_ant:1;
  40. u8 coex_type:3;
  41. u8 ant_iso:1;
  42. u8 radio_on_off:1;
  43. u8 rsvd6:2;
  44. u8 eeprom_version;
  45. u8 customer_id;
  46. u8 tx_bb_swing_2g;
  47. u8 tx_bb_swing_5g;
  48. u8 tx_cali_pwr_trk_mode;
  49. u8 trx_path_selection;
  50. u8 rfe_type;
  51. u8 country_code[2];
  52. u8 rsvd7[3];
  53. u8 path_a_therm;
  54. u8 path_b_therm;
  55. u8 rsvd8[2];
  56. u8 rx_gain_2g_ofdm;
  57. u8 rsvd9;
  58. u8 rx_gain_2g_cck;
  59. u8 rsvd10;
  60. u8 rx_gain_5g_low;
  61. u8 rsvd11;
  62. u8 rx_gain_5g_mid;
  63. u8 rsvd12;
  64. u8 rx_gain_5g_high;
  65. u8 rsvd13[35];
  66. u8 bw40_1s_tssi_6g_a[TSSI_MCS_6G_CH_GROUP_NUM];
  67. u8 rsvd14[10];
  68. u8 bw40_1s_tssi_6g_b[TSSI_MCS_6G_CH_GROUP_NUM];
  69. u8 rsvd15[110];
  70. u8 channel_plan_6g;
  71. u8 rsvd16[71];
  72. union {
  73. struct rtw8852c_u_efuse u;
  74. struct rtw8852c_e_efuse e;
  75. };
  76. } __packed;
  77. extern const struct rtw89_chip_info rtw8852c_chip_info;
  78. #endif