Lines Matching defs:bbp
254 aprint_normal_dev(sc->sc_dev, "MAC/BBP RT%X (rev 0x%04X), "
919 /* ..and reset MAC/BBP for a while.. */
2022 * Reading and writing from/to the BBP is different from RT2560 and RT2661.
2023 * We access the BBP through the 8051 microcontroller unit which means that
2038 "could not write to BBP through MCU\n");
2063 "could not read from BBP through MCU\n");
2080 aprint_error_dev(sc->sc_dev, "could not read from BBP through MCU\n");
2270 /* Wait for BBP to settle */
2585 uint8_t rf, bbp;
2631 bbp = rt2860_mcu_bbp_read(sc, 4);
2632 rt2860_mcu_bbp_write(sc, 4, (bbp & ~0x08) | 0x10);
2641 bbp = rt2860_mcu_bbp_read(sc, 4);
2642 rt2860_mcu_bbp_write(sc, 4, bbp & ~0x18);
2653 bbp = rt2860_mcu_bbp_read(sc, 138);
2656 bbp |= 0x60; /* turn off DAC1 and DAC2 */
2658 bbp |= 0x40; /* turn off DAC2 */
2660 bbp &= ~0x06; /* turn off ADC1 and ADC2 */
2662 bbp &= ~0x04; /* turn off ADC2 */
2665 bbp |= 0x20; /* turn off DAC1 */
2667 bbp &= ~0x02; /* turn off ADC1 */
2669 rt2860_mcu_bbp_write(sc, 138, bbp);
2697 uint8_t rf, bbp;
2743 bbp = rt2860_mcu_bbp_read(sc, 138);
2745 bbp |= 0x20; /* Turn off DAC1. */
2747 bbp &= ~0x02; /* Turn off ADC1. */
2748 rt2860_mcu_bbp_write(sc, 138, bbp);
2933 uint8_t bbp;
2941 bbp = rt2860_mcu_bbp_read(sc, 31);
2942 rt2860_mcu_bbp_write(sc, 31, bbp & ~0x03);
3347 /* read vendor BBP settings */
3350 sc->bbp[i].val = val & 0xff;
3351 sc->bbp[i].reg = val >> 8;
3352 DPRINTF(("BBP%d=0x%02x\n", sc->bbp[i].reg, sc->bbp[i].val));
3618 /* wait for BBP to wake up */
3626 "timeout waiting for BBP to wake up\n");
3630 /* initialize BBP registers to default values */
3659 uint8_t bbp;
3664 bbp = rt2860_mcu_bbp_read(sc, 105);
3665 rt2860_mcu_bbp_write(sc, 105, bbp | RT5390_MLD);
3669 bbp = rt2860_mcu_bbp_read(sc, 4);
3670 rt2860_mcu_bbp_write(sc, 4, bbp | RT5390_MAC_IF_CTRL);
3686 bbp = rt2860_mcu_bbp_read(sc, 152);
3687 rt2860_mcu_bbp_write(sc, 152, bbp | 0x80);
3930 /* write vendor-specific BBP values (from EEPROM) */
3932 if (sc->bbp[i].reg == 0 || sc->bbp[i].reg == 0xff)
3934 rt2860_mcu_bbp_write(sc, sc->bbp[i].reg, sc->bbp[i].val);