forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/wireless/ralink/rt2x00/rt2800.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com>
34 Copyright (C) 2010 Willow Garage <http://www.willowgarage.com>
....@@ -10,18 +11,6 @@
1011 Copyright (C) 2009 Bart Zolnierkiewicz <bzolnier@gmail.com>
1112 <http://rt2x00.serialmonkey.com>
1213
13
- This program is free software; you can redistribute it and/or modify
14
- it under the terms of the GNU General Public License as published by
15
- the Free Software Foundation; either version 2 of the License, or
16
- (at your option) any later version.
17
-
18
- This program is distributed in the hope that it will be useful,
19
- but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- GNU General Public License for more details.
22
-
23
- You should have received a copy of the GNU General Public License
24
- along with this program; if not, see <http://www.gnu.org/licenses/>.
2514 */
2615
2716 /*
....@@ -48,7 +37,8 @@
4837 * RF2853 2.4G/5G 3T3R
4938 * RF3320 2.4G 1T1R(RT3350/RT3370/RT3390)
5039 * RF3322 2.4G 2T2R(RT3352/RT3371/RT3372/RT3391/RT3392)
51
- * RF3053 2.4G/5G 3T3R(RT3883/RT3563/RT3573/RT3593/RT3662)
40
+ * RF3053 2.4G/5G 3T3R(RT3563/RT3573/RT3593)
41
+ * RF3853 2.4G/5G 3T3R(RT3883/RT3662)
5242 * RF5592 2.4G/5G 2T2R
5343 * RF3070 2.4G 1T1R
5444 * RF5360 2.4G 1T1R
....@@ -72,6 +62,7 @@
7262 #define RF5592 0x000f
7363 #define RF3070 0x3070
7464 #define RF3290 0x3290
65
+#define RF3853 0x3853
7566 #define RF5350 0x5350
7667 #define RF5360 0x5360
7768 #define RF5362 0x5362
....@@ -1726,6 +1717,20 @@
17261717 #define TX_PWR_CFG_9B_STBC_MCS7 FIELD32(0x000000ff)
17271718
17281719 /*
1720
+ * TX_TXBF_CFG:
1721
+ */
1722
+#define TX_TXBF_CFG_0 0x138c
1723
+#define TX_TXBF_CFG_1 0x13a4
1724
+#define TX_TXBF_CFG_2 0x13a8
1725
+#define TX_TXBF_CFG_3 0x13ac
1726
+
1727
+/*
1728
+ * TX_FBK_CFG_3S:
1729
+ */
1730
+#define TX_FBK_CFG_3S_0 0x13c4
1731
+#define TX_FBK_CFG_3S_1 0x13c8
1732
+
1733
+/*
17291734 * RX_FILTER_CFG: RX configuration register.
17301735 */
17311736 #define RX_FILTER_CFG 0x1400
....@@ -2296,6 +2301,7 @@
22962301 /*
22972302 * RFCSR 2:
22982303 */
2304
+#define RFCSR2_RESCAL_BP FIELD8(0x40)
22992305 #define RFCSR2_RESCAL_EN FIELD8(0x80)
23002306 #define RFCSR2_RX2_EN_MT7620 FIELD8(0x02)
23012307 #define RFCSR2_TX2_EN_MT7620 FIELD8(0x20)