rt2x00: Unify GPIO register field namings
The various rt2x00 drivers use different methods to name the different GPIO register fields indicating the GPIO pin value and the fields indicating the direction. Start using a unified naming scheme for the GPIO register fields: - <csr>_VAL<x> for fields indicating the GPIO pin value. - <csr>_DIR<x> for fields indicating the GPIO pin direction. 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>
This commit is contained in:

committed by
John W. Linville

parent
605b55186b
commit
99bdf51a68
@@ -187,24 +187,26 @@
|
||||
|
||||
/*
|
||||
* MAC_CSR19: GPIO control register.
|
||||
* MAC_CSR19_VALx: GPIO value
|
||||
* MAC_CSR19_DIRx: GPIO direction: 0 = input; 1 = output
|
||||
*/
|
||||
#define MAC_CSR19 0x0426
|
||||
#define MAC_CSR19_BIT0 FIELD16(0x0001)
|
||||
#define MAC_CSR19_BIT1 FIELD16(0x0002)
|
||||
#define MAC_CSR19_BIT2 FIELD16(0x0004)
|
||||
#define MAC_CSR19_BIT3 FIELD16(0x0008)
|
||||
#define MAC_CSR19_BIT4 FIELD16(0x0010)
|
||||
#define MAC_CSR19_BIT5 FIELD16(0x0020)
|
||||
#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)
|
||||
#define MAC_CSR19_VAL0 FIELD16(0x0001)
|
||||
#define MAC_CSR19_VAL1 FIELD16(0x0002)
|
||||
#define MAC_CSR19_VAL2 FIELD16(0x0004)
|
||||
#define MAC_CSR19_VAL3 FIELD16(0x0008)
|
||||
#define MAC_CSR19_VAL4 FIELD16(0x0010)
|
||||
#define MAC_CSR19_VAL5 FIELD16(0x0020)
|
||||
#define MAC_CSR19_VAL6 FIELD16(0x0040)
|
||||
#define MAC_CSR19_VAL7 FIELD16(0x0080)
|
||||
#define MAC_CSR19_DIR0 FIELD16(0x0100)
|
||||
#define MAC_CSR19_DIR1 FIELD16(0x0200)
|
||||
#define MAC_CSR19_DIR2 FIELD16(0x0400)
|
||||
#define MAC_CSR19_DIR3 FIELD16(0x0800)
|
||||
#define MAC_CSR19_DIR4 FIELD16(0x1000)
|
||||
#define MAC_CSR19_DIR5 FIELD16(0x2000)
|
||||
#define MAC_CSR19_DIR6 FIELD16(0x4000)
|
||||
#define MAC_CSR19_DIR7 FIELD16(0x8000)
|
||||
|
||||
/*
|
||||
* MAC_CSR20: LED control register.
|
||||
|
Reference in New Issue
Block a user