b43: Add LP-PHY baseband init for >=rev2
PATCH 1/1 b43: Add LP-PHY baseband init for >=rev2
This adds code for the baseband init of LP-PHY >=2.
Signed-off-by Michael Buesch <[email protected]>
---
drivers/net/wireless/b43/Makefile +1 -0
@@ -6,6 +6,7 @@ b43-y += phy_g.o b43-y += phy_a.o b43-$(CONFIG_B43_NPHY) += phy_n.o b43-$(CONFIG_B43_PHY_LP) += phy_lp.o +b43-$(CONFIG_B43_PHY_LP) += tables_lpphy.o b43-y += sysfs.o b43-y += xmit.o b43-y += lo.o
drivers/net/wireless/b43/phy_lp.c +76 -2
96 lines not on this page · raw message
drivers/net/wireless/b43/phy_lp.h +41 -1
48 lines not on this page · raw message
drivers/net/wireless/b43/tables_lpphy.c new file +89 -0
89 lines not on this page · raw message
drivers/net/wireless/b43/tables_lpphy.h new file +21 -0
@@ -0,0 +1,21 @@ +#ifndef B43_TABLES_LPPHY_H_ +#define B43_TABLES_LPPHY_H_ + + +#define B43_LPTAB_TYPEMASK 0xF0000000 +#define B43_LPTAB_8BIT 0x10000000 +#define B43_LPTAB_16BIT 0x20000000 +#define B43_LPTAB_32BIT 0x30000000 +#define B43_LPTAB8 (table, offset) (((table) << 10) | (offset) | B43_LPTAB_8BIT) +#define B43_LPTAB16 (table, offset) (((table) << 10) | (offset) | B43_LPTAB_16BIT) +#define B43_LPTAB32 (table, offset) (((table) << 10) | (offset) | B43_LPTAB_32BIT) + +/* Table definitions */ +#define B43_LPTAB_TXPWR_R2PLUS B43_LPTAB32(0x07, 0)/* TX power lookup table (rev >= 2) */ +#define B43_LPTAB_TXPWR_R0_1 B43_LPTAB32(0xA0, 0)/* TX power lookup table (rev < 2) */ + +u32 b43_lptab_read (struct b43_wldev *dev,u32 offset); +void b43_lptab_write (struct b43_wldev *dev,u32 offset,u32 value); + + +#endif /* B43_TABLES_LPPHY_H_ */
Signature · 1 line
Greetings, Michael.