mt7603: communicate radio on/off state to MCU

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2015-12-08 23:34:07 +01:00
parent 876d60a836
commit 196fc39261
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -16,12 +16,19 @@
static int
mt7603_start(struct ieee80211_hw *hw)
{
struct mt7603_dev *dev = hw->priv;
mt76_clear(dev, MT_AGG_TMP, GENMASK(31, 16));
return 0;
}
static void
mt7603_stop(struct ieee80211_hw *hw)
{
struct mt7603_dev *dev = hw->priv;
mt76_set(dev, MT_AGG_TMP, GENMASK(31, 16));
}
static int
+6
View File
@@ -72,6 +72,12 @@
#define MT_SCH_4_FORCE_QID GENMASK(4, 0)
#define MT_SCH_4_BYPASS BIT(5)
#define MT_WF_AGG_BASE 0x21200
#define MT_WF_AGG(ofs) (MT_WF_AGG_BASE + (ofs))
#define MT_AGG_TMP MT_WF_AGG(0x0d8)
#define MT_WF_DMA_BASE 0x21c00
#define MT_WF_DMA(ofs) (MT_WF_DMA_BASE + (ofs))