Commit c10e47f4 authored by Gábor Stefanik's avatar Gábor Stefanik Committed by John W. Linville

b43: Add LP 2063 radio init

Add B2063 radio init code and tables for LP-PHY.
Rename structures common between B2062 and B2063 to B206X.
Signed-off-by: default avatarGábor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 14b46c8a
...@@ -333,7 +333,17 @@ static void lpphy_2062_init(struct b43_wldev *dev) ...@@ -333,7 +333,17 @@ static void lpphy_2062_init(struct b43_wldev *dev)
/* Initialize the 2063 radio. */ /* Initialize the 2063 radio. */
static void lpphy_2063_init(struct b43_wldev *dev) static void lpphy_2063_init(struct b43_wldev *dev)
{ {
//TODO b2063_upload_init_table(dev);
b43_radio_write(dev, B2063_LOGEN_SP5, 0);
b43_radio_set(dev, B2063_COMM8, 0x38);
b43_radio_write(dev, B2063_REG_SP1, 0x56);
b43_radio_mask(dev, B2063_RX_BB_CTL2, ~0x2);
b43_radio_write(dev, B2063_PA_SP7, 0);
b43_radio_write(dev, B2063_TX_RF_SP6, 0x20);
b43_radio_write(dev, B2063_TX_RF_SP9, 0x40);
b43_radio_write(dev, B2063_PA_SP3, 0xa0);
b43_radio_write(dev, B2063_PA_SP4, 0xa0);
b43_radio_write(dev, B2063_PA_SP2, 0x18);
} }
static void lpphy_sync_stx(struct b43_wldev *dev) static void lpphy_sync_stx(struct b43_wldev *dev)
...@@ -533,6 +543,7 @@ static void lpphy_tx_pctl_init(struct b43_wldev *dev) ...@@ -533,6 +543,7 @@ static void lpphy_tx_pctl_init(struct b43_wldev *dev)
static int b43_lpphy_op_init(struct b43_wldev *dev) static int b43_lpphy_op_init(struct b43_wldev *dev)
{ {
/* TODO: band SPROM */ /* TODO: band SPROM */
/* TODO: tables init */
lpphy_baseband_init(dev); lpphy_baseband_init(dev);
lpphy_radio_init(dev); lpphy_radio_init(dev);
//TODO calibrate RC //TODO calibrate RC
......
This diff is collapsed.
...@@ -26,6 +26,7 @@ void b43_lptab_write_bulk(struct b43_wldev *dev, u32 offset, ...@@ -26,6 +26,7 @@ void b43_lptab_write_bulk(struct b43_wldev *dev, u32 offset,
unsigned int nr_elements, const void *data); unsigned int nr_elements, const void *data);
void b2062_upload_init_table(struct b43_wldev *dev); void b2062_upload_init_table(struct b43_wldev *dev);
void b2063_upload_init_table(struct b43_wldev *dev);
#endif /* B43_TABLES_LPPHY_H_ */ #endif /* B43_TABLES_LPPHY_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment