1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef B43_RADIO_2059_H_
3 #define B43_RADIO_2059_H_
5 #include <linux/types.h>
10 #define R2059_C2 0x400
11 #define R2059_C3 0x800
12 #define R2059_ALL 0xC00
14 #define R2059_RCAL_CONFIG 0x004
15 #define R2059_RFPLL_MASTER 0x011
16 #define R2059_RFPLL_MISC_EN 0x02b
17 #define R2059_RFPLL_MISC_CAL_RESETN 0x02e
18 #define R2059_XTAL_CONFIG2 0x0c0
19 #define R2059_RCCAL_START_R1_Q1_P1 0x13c
20 #define R2059_RCCAL_X1 0x13d
21 #define R2059_RCCAL_TRC0 0x13e
22 #define R2059_RCCAL_DONE_OSCCAP 0x140
23 #define R2059_RCAL_STATUS 0x145
24 #define R2059_RCCAL_MASTER 0x17f
26 /* Values for various registers uploaded on channel switching */
27 struct b43_phy_ht_channeltab_e_radio2059
{
28 /* The channel frequency in MHz */
30 /* Values for radio registers */
52 /* Values for PHY registers */
53 struct b43_phy_ht_channeltab_e_phy phy_regs
;
56 void r2059_upload_inittabs(struct b43_wldev
*dev
);
58 const struct b43_phy_ht_channeltab_e_radio2059
59 *b43_phy_ht_get_channeltab_e_r2059(struct b43_wldev
*dev
, u16 freq
);
61 #endif /* B43_RADIO_2059_H_ */