Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 655 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
47 lines
944 B
C
47 lines
944 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org>
|
|
* Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl>
|
|
*/
|
|
|
|
#ifndef __MT76X0U_MCU_H
|
|
#define __MT76X0U_MCU_H
|
|
|
|
#include "../mt76x02_mcu.h"
|
|
|
|
struct mt76x02_dev;
|
|
|
|
#define MT_MCU_IVB_SIZE 0x40
|
|
#define MT_MCU_DLM_OFFSET 0x80000
|
|
|
|
/* We use same space for BBP as for MAC regs
|
|
* #define MT_MCU_MEMMAP_BBP 0x40000000
|
|
*/
|
|
#define MT_MCU_MEMMAP_RF 0x80000000
|
|
|
|
enum mcu_calibrate {
|
|
MCU_CAL_R = 1,
|
|
MCU_CAL_RXDCOC,
|
|
MCU_CAL_LC,
|
|
MCU_CAL_LOFT,
|
|
MCU_CAL_TXIQ,
|
|
MCU_CAL_BW,
|
|
MCU_CAL_DPD,
|
|
MCU_CAL_RXIQ,
|
|
MCU_CAL_TXDCOC,
|
|
MCU_CAL_RX_GROUP_DELAY,
|
|
MCU_CAL_TX_GROUP_DELAY,
|
|
MCU_CAL_VCO,
|
|
MCU_CAL_NO_SIGNAL = 0xfe,
|
|
MCU_CAL_FULL = 0xff,
|
|
};
|
|
|
|
int mt76x0e_mcu_init(struct mt76x02_dev *dev);
|
|
int mt76x0u_mcu_init(struct mt76x02_dev *dev);
|
|
static inline int mt76x0_firmware_running(struct mt76x02_dev *dev)
|
|
{
|
|
return mt76_rr(dev, MT_MCU_COM_REG0) == 1;
|
|
}
|
|
|
|
#endif
|