1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org>
4 * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl>
7 #ifndef __MT76X0U_MCU_H
8 #define __MT76X0U_MCU_H
10 #include "../mt76x02_mcu.h"
14 #define MT_MCU_IVB_SIZE 0x40
15 #define MT_MCU_DLM_OFFSET 0x80000
17 /* We use same space for BBP as for MAC regs
18 * #define MT_MCU_MEMMAP_BBP 0x40000000
20 #define MT_MCU_MEMMAP_RF 0x80000000
32 MCU_CAL_RX_GROUP_DELAY
,
33 MCU_CAL_TX_GROUP_DELAY
,
35 MCU_CAL_NO_SIGNAL
= 0xfe,
39 int mt76x0e_mcu_init(struct mt76x02_dev
*dev
);
40 int mt76x0u_mcu_init(struct mt76x02_dev
*dev
);
41 static inline int mt76x0_firmware_running(struct mt76x02_dev
*dev
)
43 return mt76_rr(dev
, MT_MCU_COM_REG0
) == 1;