1 /* SPDX-License-Identifier: ISC */
3 * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
9 #include "../mt76x02_mcu.h"
11 /* Register definitions */
12 #define MT_MCU_CPU_CTL 0x0704
13 #define MT_MCU_CLOCK_CTL 0x0708
14 #define MT_MCU_PCIE_REMAP_BASE1 0x0740
15 #define MT_MCU_PCIE_REMAP_BASE2 0x0744
16 #define MT_MCU_PCIE_REMAP_BASE3 0x0748
18 #define MT_MCU_ROM_PATCH_OFFSET 0x80000
19 #define MT_MCU_ROM_PATCH_ADDR 0x90000
21 #define MT_MCU_ILM_OFFSET 0x80000
23 #define MT_MCU_DLM_OFFSET 0x100000
24 #define MT_MCU_DLM_ADDR 0x90000
25 #define MT_MCU_DLM_ADDR_E3 0x90800
27 enum mcu_calibration
{
45 enum mt76x2_mcu_cr_mode
{
52 struct mt76x2_tssi_comp
{
61 } __packed
__aligned(4);
63 int mt76x2_mcu_tssi_comp(struct mt76x02_dev
*dev
,
64 struct mt76x2_tssi_comp
*tssi_data
);
65 int mt76x2_mcu_init_gain(struct mt76x02_dev
*dev
, u8 channel
, u32 gain
,