]> git.hungrycats.org Git - linux/commitdiff
rt2x00: support Ralink 5362.
authorCanek Peláez Valdés <canek@ciencias.unam.mx>
Mon, 25 Aug 2014 00:06:11 +0000 (19:06 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:46 +0000 (19:02 +0100)
commit ac0372abf8524a7572a9cdaac6495eb2eba20457 upstream.

Signed-off-by: Canek Peláez Valdés <canek@ciencias.unam.mx>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/wireless/rt2x00/rt2800.h
drivers/net/wireless/rt2x00/rt2800lib.c

index bc82d55d77c03185d51f2e8b96589b4086c5ae8c..71f70c724fc9fd319165fc4148dbfe379e6a5f7e 100644 (file)
@@ -54,6 +54,7 @@
  * RF5592 2.4G/5G 2T2R
  * RF3070 2.4G 1T1R
  * RF5360 2.4G 1T1R
+ * RF5362 2.4G 1T1R
  * RF5370 2.4G 1T1R
  * RF5390 2.4G 1T1R
  */
@@ -74,6 +75,7 @@
 #define RF3070                         0x3070
 #define RF3290                         0x3290
 #define RF5360                         0x5360
+#define RF5362                         0x5362
 #define RF5370                         0x5370
 #define RF5372                         0x5372
 #define RF5390                         0x5390
@@ -2147,7 +2149,7 @@ struct mac_iveiv_entry {
 /* Bits [7-4] for RF3320 (RT3370/RT3390), on other chipsets reserved */
 #define RFCSR3_PA1_BIAS_CCK            FIELD8(0x70)
 #define RFCSR3_PA2_CASCODE_BIAS_CCKK   FIELD8(0x80)
-/* Bits for RF3290/RF5360/RF5370/RF5372/RF5390/RF5392 */
+/* Bits for RF3290/RF5360/RF5362/RF5370/RF5372/RF5390/RF5392 */
 #define RFCSR3_VCOCAL_EN               FIELD8(0x80)
 /* Bits for RF3050 */
 #define RFCSR3_BIT1                    FIELD8(0x02)
index 446eadeaaef675bd11bd2e795aada23db6241dc3..3bbd03c4906d11a860670716929897108ca9e606 100644 (file)
@@ -3154,6 +3154,7 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev,
                break;
        case RF3070:
        case RF5360:
+       case RF5362:
        case RF5370:
        case RF5372:
        case RF5390:
@@ -3171,6 +3172,7 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev,
            rt2x00_rf(rt2x00dev, RF3290) ||
            rt2x00_rf(rt2x00dev, RF3322) ||
            rt2x00_rf(rt2x00dev, RF5360) ||
+           rt2x00_rf(rt2x00dev, RF5362) ||
            rt2x00_rf(rt2x00dev, RF5370) ||
            rt2x00_rf(rt2x00dev, RF5372) ||
            rt2x00_rf(rt2x00dev, RF5390) ||
@@ -4269,6 +4271,7 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev)
        case RF3070:
        case RF3290:
        case RF5360:
+       case RF5362:
        case RF5370:
        case RF5372:
        case RF5390:
@@ -7032,6 +7035,7 @@ static int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev)
        case RF3320:
        case RF3322:
        case RF5360:
+       case RF5362:
        case RF5370:
        case RF5372:
        case RF5390:
@@ -7555,6 +7559,7 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
                   rt2x00_rf(rt2x00dev, RF3320) ||
                   rt2x00_rf(rt2x00dev, RF3322) ||
                   rt2x00_rf(rt2x00dev, RF5360) ||
+                  rt2x00_rf(rt2x00dev, RF5362) ||
                   rt2x00_rf(rt2x00dev, RF5370) ||
                   rt2x00_rf(rt2x00dev, RF5372) ||
                   rt2x00_rf(rt2x00dev, RF5390) ||
@@ -7682,6 +7687,7 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
        case RF3070:
        case RF3290:
        case RF5360:
+       case RF5362:
        case RF5370:
        case RF5372:
        case RF5390: