From e49d439f1b0c39cac96bb4590005c20b8559550e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 27 Feb 2016 10:38:01 +0100 Subject: [PATCH] mt7603: add a missing register init Signed-off-by: Felix Fietkau --- mt7603_init.c | 2 ++ mt7603_regs.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/mt7603_init.c b/mt7603_init.c index 59de44aa..6c8958f2 100644 --- a/mt7603_init.c +++ b/mt7603_init.c @@ -276,6 +276,8 @@ mt7603_mac_init(struct mt7603_dev *dev) MT76_SET(MT_AGG_ARCR_RTS_RATE_THR, 2))); mt76_set(dev, MT_WTBL_RMVTCR, MT_WTBL_RMVTCR_RX_MV_MODE); + + mt76_clear(dev, MT_SEC_SCR, MT_SEC_SCR_MASK_ORDER); } static int diff --git a/mt7603_regs.h b/mt7603_regs.h index 43c7fc1e..819570d8 100644 --- a/mt7603_regs.h +++ b/mt7603_regs.h @@ -376,6 +376,12 @@ enum { #define MT_WF_RFCR1 MT_WF_RMAC(0x0a4) #define MT_WF_RMAC_TMR_PA MT_WF_RMAC(0x0e0) +#define MT_WF_SEC_BASE 0x21a00 +#define MT_WF_SEC(ofs) (MT_WF_SEC_BASE + (ofs)) + +#define MT_SEC_SCR MT_WF_SEC(0x004) +#define MT_SEC_SCR_MASK_ORDER GENMASK(1, 0) + #define MT_WTBL_OFF_BASE 0x23000 #define MT_WTBL_OFF(n) (MT_WTBL_OFF_BASE + (n))