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
@@ -789,16 +789,18 @@
|
||||
|
||||
/*
|
||||
* GPIOCSR: GPIO control register.
|
||||
* GPIOCSR_VALx: GPIO value
|
||||
* GPIOCSR_DIRx: GPIO direction: 0 = output; 1 = input
|
||||
*/
|
||||
#define GPIOCSR 0x0120
|
||||
#define GPIOCSR_BIT0 FIELD32(0x00000001)
|
||||
#define GPIOCSR_BIT1 FIELD32(0x00000002)
|
||||
#define GPIOCSR_BIT2 FIELD32(0x00000004)
|
||||
#define GPIOCSR_BIT3 FIELD32(0x00000008)
|
||||
#define GPIOCSR_BIT4 FIELD32(0x00000010)
|
||||
#define GPIOCSR_BIT5 FIELD32(0x00000020)
|
||||
#define GPIOCSR_BIT6 FIELD32(0x00000040)
|
||||
#define GPIOCSR_BIT7 FIELD32(0x00000080)
|
||||
#define GPIOCSR_VAL0 FIELD32(0x00000001)
|
||||
#define GPIOCSR_VAL1 FIELD32(0x00000002)
|
||||
#define GPIOCSR_VAL2 FIELD32(0x00000004)
|
||||
#define GPIOCSR_VAL3 FIELD32(0x00000008)
|
||||
#define GPIOCSR_VAL4 FIELD32(0x00000010)
|
||||
#define GPIOCSR_VAL5 FIELD32(0x00000020)
|
||||
#define GPIOCSR_VAL6 FIELD32(0x00000040)
|
||||
#define GPIOCSR_VAL7 FIELD32(0x00000080)
|
||||
#define GPIOCSR_DIR0 FIELD32(0x00000100)
|
||||
#define GPIOCSR_DIR1 FIELD32(0x00000200)
|
||||
#define GPIOCSR_DIR2 FIELD32(0x00000400)
|
||||
|
Reference in New Issue
Block a user