rt2x00: Align GPIO register definitions with the datasheets.
authorGertjan van Wingerde <gwingerde@gmail.com>
Fri, 31 Aug 2012 17:22:12 +0000 (19:22 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 7 Sep 2012 19:08:40 +0000 (15:08 -0400)
Ensure that all active GPIO pins are included in the GPIO register
definitions, nothing more and nothing less.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo Van Doorn <ivdoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2400pci.h
drivers/net/wireless/rt2x00/rt2500usb.h
drivers/net/wireless/rt2x00/rt2800.h
drivers/net/wireless/rt2x00/rt61pci.h

index 7564ae992b735179b15e24a3d616c5a71acb1aeb..9d78a53ac61a3327ecc707c50a93134e29ec847f 100644 (file)
 #define GPIOCSR_BIT6                   FIELD32(0x00000040)
 #define GPIOCSR_BIT7                   FIELD32(0x00000080)
 #define GPIOCSR_BIT8                   FIELD32(0x00000100)
+#define GPIOCSR_BIT9                   FIELD32(0x00000200)
+#define GPIOCSR_BIT10                  FIELD32(0x00000400)
+#define GPIOCSR_BIT11                  FIELD32(0x00000800)
+#define GPIOCSR_BIT12                  FIELD32(0x00001000)
+#define GPIOCSR_BIT13                  FIELD32(0x00002000)
+#define GPIOCSR_BIT14                  FIELD32(0x00004000)
+#define GPIOCSR_BIT15                  FIELD32(0x00008000)
 
 /*
  * BBPPCSR: BBP Pin control register.
index 196bd5103e4f5450483ce1e60449021bf6eafd2c..9652300b6f9c8a604306ac88ef0196d07e2482fa 100644 (file)
 #define MAC_CSR19_BIT6                 FIELD16(0x0040)
 #define MAC_CSR19_BIT7                 FIELD16(0x0080)
 #define MAC_CSR19_BIT8                 FIELD16(0x0100)
+#define MAC_CSR19_BIT9                 FIELD16(0x0200)
+#define MAC_CSR19_BIT10                        FIELD16(0x0400)
+#define MAC_CSR19_BIT11                        FIELD16(0x0800)
+#define MAC_CSR19_BIT12                        FIELD16(0x1000)
+#define MAC_CSR19_BIT13                        FIELD16(0x2000)
+#define MAC_CSR19_BIT14                        FIELD16(0x4000)
+#define MAC_CSR19_BIT15                        FIELD16(0x8000)
 
 /*
  * MAC_CSR20: LED control register.
index e252e9bafd0e2776075a8159d74e4f9180b87e83..a838e17db45cf433ddc28032e96c7c9ec6feb3dc 100644 (file)
 #define GPIO_CTRL_CFG_GPIOD_BIT5       FIELD32(0x00002000)
 #define GPIO_CTRL_CFG_GPIOD_BIT6       FIELD32(0x00004000)
 #define GPIO_CTRL_CFG_GPIOD_BIT7       FIELD32(0x00008000)
+#define GPIO_CTRL_CFG_BIT8             FIELD32(0x00010000)
+#define GPIO_CTRL_CFG_BIT9             FIELD32(0x00020000)
+#define GPIO_CTRL_CFG_BIT10            FIELD32(0x00040000)
+#define GPIO_CTRL_CFG_GPIOD_BIT8       FIELD32(0x01000000)
+#define GPIO_CTRL_CFG_GPIOD_BIT9       FIELD32(0x02000000)
+#define GPIO_CTRL_CFG_GPIOD_BIT10      FIELD32(0x04000000)
 
 /*
  * MCU_CMD_CFG
index 8f3da5a56766f4c3293825c2d649078f4cb5455f..9ee0c33175fdf72954af1bb5f8999a41cf058024 100644 (file)
@@ -365,8 +365,6 @@ struct hw_pairwise_ta_entry {
 #define MAC_CSR13_BIT3                 FIELD32(0x00000008)
 #define MAC_CSR13_BIT4                 FIELD32(0x00000010)
 #define MAC_CSR13_BIT5                 FIELD32(0x00000020)
-#define MAC_CSR13_BIT6                 FIELD32(0x00000040)
-#define MAC_CSR13_BIT7                 FIELD32(0x00000080)
 #define MAC_CSR13_BIT8                 FIELD32(0x00000100)
 #define MAC_CSR13_BIT9                 FIELD32(0x00000200)
 #define MAC_CSR13_BIT10                        FIELD32(0x00000400)