|
@@ -149,9 +149,8 @@ void wlc_radioreg_enter(struct brcms_phy_pub *pih)
|
|
|
void wlc_radioreg_exit(struct brcms_phy_pub *pih)
|
|
|
{
|
|
|
struct brcms_phy *pi = (struct brcms_phy *) pih;
|
|
|
- u16 dummy;
|
|
|
|
|
|
- dummy = R_REG(&pi->regs->phyversion);
|
|
|
+ (void)bcma_read16(pi->d11core, D11REGOFFS(phyversion));
|
|
|
pi->phy_wreg = 0;
|
|
|
wlapi_bmac_mctrl(pi->sh->physhim, MCTL_LOCK_RADIO, 0);
|
|
|
}
|
|
@@ -186,11 +185,11 @@ u16 read_radio_reg(struct brcms_phy *pi, u16 addr)
|
|
|
if ((D11REV_GE(pi->sh->corerev, 24)) ||
|
|
|
(D11REV_IS(pi->sh->corerev, 22)
|
|
|
&& (pi->pubpi.phy_type != PHY_TYPE_SSN))) {
|
|
|
- W_REG_FLUSH(&pi->regs->radioregaddr, addr);
|
|
|
- data = R_REG(&pi->regs->radioregdata);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), addr);
|
|
|
+ data = bcma_read16(pi->d11core, D11REGOFFS(radioregdata));
|
|
|
} else {
|
|
|
- W_REG_FLUSH(&pi->regs->phy4waddr, addr);
|
|
|
- data = R_REG(&pi->regs->phy4wdatalo);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phy4waddr), addr);
|
|
|
+ data = bcma_read16(pi->d11core, D11REGOFFS(phy4wdatalo));
|
|
|
}
|
|
|
pi->phy_wreg = 0;
|
|
|
|
|
@@ -203,15 +202,15 @@ void write_radio_reg(struct brcms_phy *pi, u16 addr, u16 val)
|
|
|
(D11REV_IS(pi->sh->corerev, 22)
|
|
|
&& (pi->pubpi.phy_type != PHY_TYPE_SSN))) {
|
|
|
|
|
|
- W_REG_FLUSH(&pi->regs->radioregaddr, addr);
|
|
|
- W_REG(&pi->regs->radioregdata, val);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), addr);
|
|
|
+ bcma_write16(pi->d11core, D11REGOFFS(radioregdata), val);
|
|
|
} else {
|
|
|
- W_REG_FLUSH(&pi->regs->phy4waddr, addr);
|
|
|
- W_REG(&pi->regs->phy4wdatalo, val);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phy4waddr), addr);
|
|
|
+ bcma_write16(pi->d11core, D11REGOFFS(phy4wdatalo), val);
|
|
|
}
|
|
|
|
|
|
if (++pi->phy_wreg >= pi->phy_wreg_limit) {
|
|
|
- (void)R_REG(&pi->regs->maccontrol);
|
|
|
+ (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol));
|
|
|
pi->phy_wreg = 0;
|
|
|
}
|
|
|
}
|
|
@@ -223,19 +222,20 @@ static u32 read_radio_id(struct brcms_phy *pi)
|
|
|
if (D11REV_GE(pi->sh->corerev, 24)) {
|
|
|
u32 b0, b1, b2;
|
|
|
|
|
|
- W_REG_FLUSH(&pi->regs->radioregaddr, 0);
|
|
|
- b0 = (u32) R_REG(&pi->regs->radioregdata);
|
|
|
- W_REG_FLUSH(&pi->regs->radioregaddr, 1);
|
|
|
- b1 = (u32) R_REG(&pi->regs->radioregdata);
|
|
|
- W_REG_FLUSH(&pi->regs->radioregaddr, 2);
|
|
|
- b2 = (u32) R_REG(&pi->regs->radioregdata);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), 0);
|
|
|
+ b0 = (u32) bcma_read16(pi->d11core, D11REGOFFS(radioregdata));
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), 1);
|
|
|
+ b1 = (u32) bcma_read16(pi->d11core, D11REGOFFS(radioregdata));
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), 2);
|
|
|
+ b2 = (u32) bcma_read16(pi->d11core, D11REGOFFS(radioregdata));
|
|
|
|
|
|
id = ((b0 & 0xf) << 28) | (((b2 << 8) | b1) << 12) | ((b0 >> 4)
|
|
|
& 0xf);
|
|
|
} else {
|
|
|
- W_REG_FLUSH(&pi->regs->phy4waddr, RADIO_IDCODE);
|
|
|
- id = (u32) R_REG(&pi->regs->phy4wdatalo);
|
|
|
- id |= (u32) R_REG(&pi->regs->phy4wdatahi) << 16;
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phy4waddr), RADIO_IDCODE);
|
|
|
+ id = (u32) bcma_read16(pi->d11core, D11REGOFFS(phy4wdatalo));
|
|
|
+ id |= (u32) bcma_read16(pi->d11core,
|
|
|
+ D11REGOFFS(phy4wdatahi)) << 16;
|
|
|
}
|
|
|
pi->phy_wreg = 0;
|
|
|
return id;
|
|
@@ -275,75 +275,52 @@ void mod_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val)
|
|
|
|
|
|
void write_phy_channel_reg(struct brcms_phy *pi, uint val)
|
|
|
{
|
|
|
- W_REG(&pi->regs->phychannel, val);
|
|
|
+ bcma_write16(pi->d11core, D11REGOFFS(phychannel), val);
|
|
|
}
|
|
|
|
|
|
u16 read_phy_reg(struct brcms_phy *pi, u16 addr)
|
|
|
{
|
|
|
- struct d11regs __iomem *regs;
|
|
|
-
|
|
|
- regs = pi->regs;
|
|
|
-
|
|
|
- W_REG_FLUSH(®s->phyregaddr, addr);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr);
|
|
|
|
|
|
pi->phy_wreg = 0;
|
|
|
- return R_REG(®s->phyregdata);
|
|
|
+ return bcma_read16(pi->d11core, D11REGOFFS(phyregdata));
|
|
|
}
|
|
|
|
|
|
void write_phy_reg(struct brcms_phy *pi, u16 addr, u16 val)
|
|
|
{
|
|
|
- struct d11regs __iomem *regs;
|
|
|
-
|
|
|
- regs = pi->regs;
|
|
|
-
|
|
|
#ifdef CONFIG_BCM47XX
|
|
|
- W_REG_FLUSH(®s->phyregaddr, addr);
|
|
|
- W_REG(®s->phyregdata, val);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr);
|
|
|
+ bcma_write16(pi->d11core, D11REGOFFS(phyregdata), val);
|
|
|
if (addr == 0x72)
|
|
|
- (void)R_REG(®s->phyregdata);
|
|
|
+ (void)bcma_read16(pi->d11core, D11REGOFFS(phyversion));
|
|
|
#else
|
|
|
- W_REG((u32 __iomem *)(®s->phyregaddr), addr | (val << 16));
|
|
|
+ bcma_write32(pi->d11core, D11REGOFFS(phyregaddr), addr | (val << 16));
|
|
|
if (++pi->phy_wreg >= pi->phy_wreg_limit) {
|
|
|
pi->phy_wreg = 0;
|
|
|
- (void)R_REG(®s->phyversion);
|
|
|
+ (void)bcma_read16(pi->d11core, D11REGOFFS(phyversion));
|
|
|
}
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
void and_phy_reg(struct brcms_phy *pi, u16 addr, u16 val)
|
|
|
{
|
|
|
- struct d11regs __iomem *regs;
|
|
|
-
|
|
|
- regs = pi->regs;
|
|
|
-
|
|
|
- W_REG_FLUSH(®s->phyregaddr, addr);
|
|
|
-
|
|
|
- W_REG(®s->phyregdata, (R_REG(®s->phyregdata) & val));
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr);
|
|
|
+ bcma_mask16(pi->d11core, D11REGOFFS(phyregdata), val);
|
|
|
pi->phy_wreg = 0;
|
|
|
}
|
|
|
|
|
|
void or_phy_reg(struct brcms_phy *pi, u16 addr, u16 val)
|
|
|
{
|
|
|
- struct d11regs __iomem *regs;
|
|
|
-
|
|
|
- regs = pi->regs;
|
|
|
-
|
|
|
- W_REG_FLUSH(®s->phyregaddr, addr);
|
|
|
-
|
|
|
- W_REG(®s->phyregdata, (R_REG(®s->phyregdata) | val));
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr);
|
|
|
+ bcma_set16(pi->d11core, D11REGOFFS(phyregdata), val);
|
|
|
pi->phy_wreg = 0;
|
|
|
}
|
|
|
|
|
|
void mod_phy_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val)
|
|
|
{
|
|
|
- struct d11regs __iomem *regs;
|
|
|
-
|
|
|
- regs = pi->regs;
|
|
|
-
|
|
|
- W_REG_FLUSH(®s->phyregaddr, addr);
|
|
|
-
|
|
|
- W_REG(®s->phyregdata,
|
|
|
- ((R_REG(®s->phyregdata) & ~mask) | (val & mask)));
|
|
|
+ val &= mask;
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr);
|
|
|
+ bcma_maskset16(pi->d11core, D11REGOFFS(phyregdata), ~mask, val);
|
|
|
pi->phy_wreg = 0;
|
|
|
}
|
|
|
|
|
@@ -448,7 +425,7 @@ static u32 wlc_phy_get_radio_ver(struct brcms_phy *pi)
|
|
|
}
|
|
|
|
|
|
struct brcms_phy_pub *
|
|
|
-wlc_phy_attach(struct shared_phy *sh, struct d11regs __iomem *regs,
|
|
|
+wlc_phy_attach(struct shared_phy *sh, struct bcma_device *d11core,
|
|
|
int bandtype, struct wiphy *wiphy)
|
|
|
{
|
|
|
struct brcms_phy *pi;
|
|
@@ -478,7 +455,7 @@ wlc_phy_attach(struct shared_phy *sh, struct d11regs __iomem *regs,
|
|
|
if (pi == NULL)
|
|
|
return NULL;
|
|
|
pi->wiphy = wiphy;
|
|
|
- pi->regs = regs;
|
|
|
+ pi->d11core = d11core;
|
|
|
pi->sh = sh;
|
|
|
pi->phy_init_por = true;
|
|
|
pi->phy_wreg_limit = PHY_WREG_LIMIT;
|
|
@@ -493,7 +470,7 @@ wlc_phy_attach(struct shared_phy *sh, struct d11regs __iomem *regs,
|
|
|
pi->pubpi.coreflags = SICF_GMODE;
|
|
|
|
|
|
wlapi_bmac_corereset(pi->sh->physhim, pi->pubpi.coreflags);
|
|
|
- phyversion = R_REG(&pi->regs->phyversion);
|
|
|
+ phyversion = bcma_read16(pi->d11core, D11REGOFFS(phyversion));
|
|
|
|
|
|
pi->pubpi.phy_type = PHY_TYPE(phyversion);
|
|
|
pi->pubpi.phy_rev = phyversion & PV_PV_MASK;
|
|
@@ -777,7 +754,7 @@ void wlc_phy_init(struct brcms_phy_pub *pih, u16 chanspec)
|
|
|
|
|
|
pi->radio_chanspec = chanspec;
|
|
|
|
|
|
- mc = R_REG(&pi->regs->maccontrol);
|
|
|
+ mc = bcma_read32(pi->d11core, D11REGOFFS(maccontrol));
|
|
|
if (WARN(mc & MCTL_EN_MAC, "HW error MAC running on init"))
|
|
|
return;
|
|
|
|
|
@@ -823,8 +800,8 @@ void wlc_phy_cal_init(struct brcms_phy_pub *pih)
|
|
|
struct brcms_phy *pi = (struct brcms_phy *) pih;
|
|
|
void (*cal_init)(struct brcms_phy *) = NULL;
|
|
|
|
|
|
- if (WARN((R_REG(&pi->regs->maccontrol) & MCTL_EN_MAC) != 0,
|
|
|
- "HW error: MAC enabled during phy cal\n"))
|
|
|
+ if (WARN((bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) &
|
|
|
+ MCTL_EN_MAC) != 0, "HW error: MAC enabled during phy cal\n"))
|
|
|
return;
|
|
|
|
|
|
if (!pi->initialized) {
|
|
@@ -1015,7 +992,7 @@ wlc_phy_init_radio_regs(struct brcms_phy *pi,
|
|
|
void wlc_phy_do_dummy_tx(struct brcms_phy *pi, bool ofdm, bool pa_on)
|
|
|
{
|
|
|
#define DUMMY_PKT_LEN 20
|
|
|
- struct d11regs __iomem *regs = pi->regs;
|
|
|
+ struct bcma_device *core = pi->d11core;
|
|
|
int i, count;
|
|
|
u8 ofdmpkt[DUMMY_PKT_LEN] = {
|
|
|
0xcc, 0x01, 0x02, 0x00, 0x00, 0x00, 0xd4, 0x00, 0x00, 0x00,
|
|
@@ -1031,26 +1008,28 @@ void wlc_phy_do_dummy_tx(struct brcms_phy *pi, bool ofdm, bool pa_on)
|
|
|
wlapi_bmac_write_template_ram(pi->sh->physhim, 0, DUMMY_PKT_LEN,
|
|
|
dummypkt);
|
|
|
|
|
|
- W_REG(®s->xmtsel, 0);
|
|
|
+ bcma_write16(core, D11REGOFFS(xmtsel), 0);
|
|
|
|
|
|
if (D11REV_GE(pi->sh->corerev, 11))
|
|
|
- W_REG(®s->wepctl, 0x100);
|
|
|
+ bcma_write16(core, D11REGOFFS(wepctl), 0x100);
|
|
|
else
|
|
|
- W_REG(®s->wepctl, 0);
|
|
|
+ bcma_write16(core, D11REGOFFS(wepctl), 0);
|
|
|
|
|
|
- W_REG(®s->txe_phyctl, (ofdm ? 1 : 0) | PHY_TXC_ANT_0);
|
|
|
+ bcma_write16(core, D11REGOFFS(txe_phyctl),
|
|
|
+ (ofdm ? 1 : 0) | PHY_TXC_ANT_0);
|
|
|
if (ISNPHY(pi) || ISLCNPHY(pi))
|
|
|
- W_REG(®s->txe_phyctl1, 0x1A02);
|
|
|
+ bcma_write16(core, D11REGOFFS(txe_phyctl1), 0x1A02);
|
|
|
|
|
|
- W_REG(®s->txe_wm_0, 0);
|
|
|
- W_REG(®s->txe_wm_1, 0);
|
|
|
+ bcma_write16(core, D11REGOFFS(txe_wm_0), 0);
|
|
|
+ bcma_write16(core, D11REGOFFS(txe_wm_1), 0);
|
|
|
|
|
|
- W_REG(®s->xmttplatetxptr, 0);
|
|
|
- W_REG(®s->xmttxcnt, DUMMY_PKT_LEN);
|
|
|
+ bcma_write16(core, D11REGOFFS(xmttplatetxptr), 0);
|
|
|
+ bcma_write16(core, D11REGOFFS(xmttxcnt), DUMMY_PKT_LEN);
|
|
|
|
|
|
- W_REG(®s->xmtsel, ((8 << 8) | (1 << 5) | (1 << 2) | 2));
|
|
|
+ bcma_write16(core, D11REGOFFS(xmtsel),
|
|
|
+ ((8 << 8) | (1 << 5) | (1 << 2) | 2));
|
|
|
|
|
|
- W_REG(®s->txe_ctl, 0);
|
|
|
+ bcma_write16(core, D11REGOFFS(txe_ctl), 0);
|
|
|
|
|
|
if (!pa_on) {
|
|
|
if (ISNPHY(pi))
|
|
@@ -1058,27 +1037,28 @@ void wlc_phy_do_dummy_tx(struct brcms_phy *pi, bool ofdm, bool pa_on)
|
|
|
}
|
|
|
|
|
|
if (ISNPHY(pi) || ISLCNPHY(pi))
|
|
|
- W_REG(®s->txe_aux, 0xD0);
|
|
|
+ bcma_write16(core, D11REGOFFS(txe_aux), 0xD0);
|
|
|
else
|
|
|
- W_REG(®s->txe_aux, ((1 << 5) | (1 << 4)));
|
|
|
+ bcma_write16(core, D11REGOFFS(txe_aux), ((1 << 5) | (1 << 4)));
|
|
|
|
|
|
- (void)R_REG(®s->txe_aux);
|
|
|
+ (void)bcma_read16(core, D11REGOFFS(txe_aux));
|
|
|
|
|
|
i = 0;
|
|
|
count = ofdm ? 30 : 250;
|
|
|
while ((i++ < count)
|
|
|
- && (R_REG(®s->txe_status) & (1 << 7)))
|
|
|
+ && (bcma_read16(core, D11REGOFFS(txe_status)) & (1 << 7)))
|
|
|
udelay(10);
|
|
|
|
|
|
i = 0;
|
|
|
|
|
|
- while ((i++ < 10)
|
|
|
- && ((R_REG(®s->txe_status) & (1 << 10)) == 0))
|
|
|
+ while ((i++ < 10) &&
|
|
|
+ ((bcma_read16(core, D11REGOFFS(txe_status)) & (1 << 10)) == 0))
|
|
|
udelay(10);
|
|
|
|
|
|
i = 0;
|
|
|
|
|
|
- while ((i++ < 10) && ((R_REG(®s->ifsstat) & (1 << 8))))
|
|
|
+ while ((i++ < 10) &&
|
|
|
+ ((bcma_read16(core, D11REGOFFS(ifsstat)) & (1 << 8))))
|
|
|
udelay(10);
|
|
|
|
|
|
if (!pa_on) {
|
|
@@ -1135,7 +1115,7 @@ static bool wlc_phy_cal_txpower_recalc_sw(struct brcms_phy *pi)
|
|
|
void wlc_phy_switch_radio(struct brcms_phy_pub *pih, bool on)
|
|
|
{
|
|
|
struct brcms_phy *pi = (struct brcms_phy *) pih;
|
|
|
- (void)R_REG(&pi->regs->maccontrol);
|
|
|
+ (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol));
|
|
|
|
|
|
if (ISNPHY(pi)) {
|
|
|
wlc_phy_switch_radio_nphy(pi, on);
|
|
@@ -1375,7 +1355,7 @@ void wlc_phy_txpower_target_set(struct brcms_phy_pub *ppi,
|
|
|
memcpy(&pi->tx_user_target[TXP_FIRST_MCS_40_SDM],
|
|
|
&txpwr->mcs_40_mimo[0], BRCMS_NUM_RATES_MCS_2_STREAM);
|
|
|
|
|
|
- if (R_REG(&pi->regs->maccontrol) & MCTL_EN_MAC)
|
|
|
+ if (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & MCTL_EN_MAC)
|
|
|
mac_enabled = true;
|
|
|
|
|
|
if (mac_enabled)
|
|
@@ -1405,7 +1385,8 @@ int wlc_phy_txpower_set(struct brcms_phy_pub *ppi, uint qdbm, bool override)
|
|
|
if (!SCAN_INPROG_PHY(pi)) {
|
|
|
bool suspend;
|
|
|
|
|
|
- suspend = (0 == (R_REG(&pi->regs->maccontrol) &
|
|
|
+ suspend = (0 == (bcma_read32(pi->d11core,
|
|
|
+ D11REGOFFS(maccontrol)) &
|
|
|
MCTL_EN_MAC));
|
|
|
|
|
|
if (!suspend)
|
|
@@ -1858,18 +1839,17 @@ void wlc_phy_runbist_config(struct brcms_phy_pub *ppi, bool start_end)
|
|
|
|
|
|
if (NREV_IS(pi->pubpi.phy_rev, 3)
|
|
|
|| NREV_IS(pi->pubpi.phy_rev, 4)) {
|
|
|
- W_REG(&pi->regs->phyregaddr, 0xa0);
|
|
|
- (void)R_REG(&pi->regs->phyregaddr);
|
|
|
- rxc = R_REG(&pi->regs->phyregdata);
|
|
|
- W_REG(&pi->regs->phyregdata,
|
|
|
- (0x1 << 15) | rxc);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr),
|
|
|
+ 0xa0);
|
|
|
+ bcma_set16(pi->d11core, D11REGOFFS(phyregdata),
|
|
|
+ 0x1 << 15);
|
|
|
}
|
|
|
} else {
|
|
|
if (NREV_IS(pi->pubpi.phy_rev, 3)
|
|
|
|| NREV_IS(pi->pubpi.phy_rev, 4)) {
|
|
|
- W_REG(&pi->regs->phyregaddr, 0xa0);
|
|
|
- (void)R_REG(&pi->regs->phyregaddr);
|
|
|
- W_REG(&pi->regs->phyregdata, rxc);
|
|
|
+ bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr),
|
|
|
+ 0xa0);
|
|
|
+ bcma_write16(pi->d11core, D11REGOFFS(phyregdata), rxc);
|
|
|
}
|
|
|
|
|
|
wlc_phy_por_inform(ppi);
|
|
@@ -1989,7 +1969,9 @@ void wlc_phy_txpower_hw_ctrl_set(struct brcms_phy_pub *ppi, bool hwpwrctrl)
|
|
|
pi->txpwrctrl = hwpwrctrl;
|
|
|
|
|
|
if (ISNPHY(pi)) {
|
|
|
- suspend = (0 == (R_REG(&pi->regs->maccontrol) & MCTL_EN_MAC));
|
|
|
+ suspend = (0 == (bcma_read32(pi->d11core,
|
|
|
+ D11REGOFFS(maccontrol)) &
|
|
|
+ MCTL_EN_MAC));
|
|
|
if (!suspend)
|
|
|
wlapi_suspend_mac_and_wait(pi->sh->physhim);
|
|
|
|
|
@@ -2191,7 +2173,8 @@ void wlc_phy_ant_rxdiv_set(struct brcms_phy_pub *ppi, u8 val)
|
|
|
if (!pi->sh->clk)
|
|
|
return;
|
|
|
|
|
|
- suspend = (0 == (R_REG(&pi->regs->maccontrol) & MCTL_EN_MAC));
|
|
|
+ suspend = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) &
|
|
|
+ MCTL_EN_MAC));
|
|
|
if (!suspend)
|
|
|
wlapi_suspend_mac_and_wait(pi->sh->physhim);
|
|
|
|
|
@@ -2409,8 +2392,8 @@ wlc_phy_noise_sample_request(struct brcms_phy_pub *pih, u8 reason, u8 ch)
|
|
|
wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP2, 0);
|
|
|
wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP3, 0);
|
|
|
|
|
|
- OR_REG(&pi->regs->maccommand,
|
|
|
- MCMD_BG_NOISE);
|
|
|
+ bcma_set32(pi->d11core, D11REGOFFS(maccommand),
|
|
|
+ MCMD_BG_NOISE);
|
|
|
} else {
|
|
|
wlapi_suspend_mac_and_wait(pi->sh->physhim);
|
|
|
wlc_lcnphy_deaf_mode(pi, (bool) 0);
|
|
@@ -2428,8 +2411,8 @@ wlc_phy_noise_sample_request(struct brcms_phy_pub *pih, u8 reason, u8 ch)
|
|
|
wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP2, 0);
|
|
|
wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP3, 0);
|
|
|
|
|
|
- OR_REG(&pi->regs->maccommand,
|
|
|
- MCMD_BG_NOISE);
|
|
|
+ bcma_set32(pi->d11core, D11REGOFFS(maccommand),
|
|
|
+ MCMD_BG_NOISE);
|
|
|
} else {
|
|
|
struct phy_iq_est est[PHY_CORE_MAX];
|
|
|
u32 cmplx_pwr[PHY_CORE_MAX];
|