0001
0002
0003
0004
0005
0006
0007 #ifndef __MT76X0U_MCU_H
0008 #define __MT76X0U_MCU_H
0009
0010 #include "../mt76x02_mcu.h"
0011
0012 struct mt76x02_dev;
0013
0014 #define MT_MCU_IVB_SIZE 0x40
0015 #define MT_MCU_DLM_OFFSET 0x80000
0016
0017
0018
0019
0020 #define MT_MCU_MEMMAP_RF 0x80000000
0021
0022 enum mcu_calibrate {
0023 MCU_CAL_R = 1,
0024 MCU_CAL_RXDCOC,
0025 MCU_CAL_LC,
0026 MCU_CAL_LOFT,
0027 MCU_CAL_TXIQ,
0028 MCU_CAL_BW,
0029 MCU_CAL_DPD,
0030 MCU_CAL_RXIQ,
0031 MCU_CAL_TXDCOC,
0032 MCU_CAL_RX_GROUP_DELAY,
0033 MCU_CAL_TX_GROUP_DELAY,
0034 MCU_CAL_VCO,
0035 MCU_CAL_NO_SIGNAL = 0xfe,
0036 MCU_CAL_FULL = 0xff,
0037 };
0038
0039 int mt76x0e_mcu_init(struct mt76x02_dev *dev);
0040 int mt76x0u_mcu_init(struct mt76x02_dev *dev);
0041 static inline int mt76x0_firmware_running(struct mt76x02_dev *dev)
0042 {
0043 return mt76_rr(dev, MT_MCU_COM_REG0) == 1;
0044 }
0045
0046 #endif