diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800.h | 52 |
1 files changed, 32 insertions, 20 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h index e252e9bafd0..6d67c3ede65 100644 --- a/drivers/net/wireless/rt2x00/rt2800.h +++ b/drivers/net/wireless/rt2x00/rt2800.h | |||
@@ -439,26 +439,33 @@ | |||
439 | #define WMM_TXOP1_CFG_AC3TXOP FIELD32(0xffff0000) | 439 | #define WMM_TXOP1_CFG_AC3TXOP FIELD32(0xffff0000) |
440 | 440 | ||
441 | /* | 441 | /* |
442 | * GPIO_CTRL_CFG: | 442 | * GPIO_CTRL: |
443 | * GPIOD: GPIO direction, 0: Output, 1: Input | 443 | * GPIO_CTRL_VALx: GPIO value |
444 | */ | 444 | * GPIO_CTRL_DIRx: GPIO direction: 0 = output; 1 = input |
445 | #define GPIO_CTRL_CFG 0x0228 | 445 | */ |
446 | #define GPIO_CTRL_CFG_BIT0 FIELD32(0x00000001) | 446 | #define GPIO_CTRL 0x0228 |
447 | #define GPIO_CTRL_CFG_BIT1 FIELD32(0x00000002) | 447 | #define GPIO_CTRL_VAL0 FIELD32(0x00000001) |
448 | #define GPIO_CTRL_CFG_BIT2 FIELD32(0x00000004) | 448 | #define GPIO_CTRL_VAL1 FIELD32(0x00000002) |
449 | #define GPIO_CTRL_CFG_BIT3 FIELD32(0x00000008) | 449 | #define GPIO_CTRL_VAL2 FIELD32(0x00000004) |
450 | #define GPIO_CTRL_CFG_BIT4 FIELD32(0x00000010) | 450 | #define GPIO_CTRL_VAL3 FIELD32(0x00000008) |
451 | #define GPIO_CTRL_CFG_BIT5 FIELD32(0x00000020) | 451 | #define GPIO_CTRL_VAL4 FIELD32(0x00000010) |
452 | #define GPIO_CTRL_CFG_BIT6 FIELD32(0x00000040) | 452 | #define GPIO_CTRL_VAL5 FIELD32(0x00000020) |
453 | #define GPIO_CTRL_CFG_BIT7 FIELD32(0x00000080) | 453 | #define GPIO_CTRL_VAL6 FIELD32(0x00000040) |
454 | #define GPIO_CTRL_CFG_GPIOD_BIT0 FIELD32(0x00000100) | 454 | #define GPIO_CTRL_VAL7 FIELD32(0x00000080) |
455 | #define GPIO_CTRL_CFG_GPIOD_BIT1 FIELD32(0x00000200) | 455 | #define GPIO_CTRL_DIR0 FIELD32(0x00000100) |
456 | #define GPIO_CTRL_CFG_GPIOD_BIT2 FIELD32(0x00000400) | 456 | #define GPIO_CTRL_DIR1 FIELD32(0x00000200) |
457 | #define GPIO_CTRL_CFG_GPIOD_BIT3 FIELD32(0x00000800) | 457 | #define GPIO_CTRL_DIR2 FIELD32(0x00000400) |
458 | #define GPIO_CTRL_CFG_GPIOD_BIT4 FIELD32(0x00001000) | 458 | #define GPIO_CTRL_DIR3 FIELD32(0x00000800) |
459 | #define GPIO_CTRL_CFG_GPIOD_BIT5 FIELD32(0x00002000) | 459 | #define GPIO_CTRL_DIR4 FIELD32(0x00001000) |
460 | #define GPIO_CTRL_CFG_GPIOD_BIT6 FIELD32(0x00004000) | 460 | #define GPIO_CTRL_DIR5 FIELD32(0x00002000) |
461 | #define GPIO_CTRL_CFG_GPIOD_BIT7 FIELD32(0x00008000) | 461 | #define GPIO_CTRL_DIR6 FIELD32(0x00004000) |
462 | #define GPIO_CTRL_DIR7 FIELD32(0x00008000) | ||
463 | #define GPIO_CTRL_VAL8 FIELD32(0x00010000) | ||
464 | #define GPIO_CTRL_VAL9 FIELD32(0x00020000) | ||
465 | #define GPIO_CTRL_VAL10 FIELD32(0x00040000) | ||
466 | #define GPIO_CTRL_DIR8 FIELD32(0x01000000) | ||
467 | #define GPIO_CTRL_DIR9 FIELD32(0x02000000) | ||
468 | #define GPIO_CTRL_DIR10 FIELD32(0x04000000) | ||
462 | 469 | ||
463 | /* | 470 | /* |
464 | * MCU_CMD_CFG | 471 | * MCU_CMD_CFG |
@@ -1936,6 +1943,11 @@ struct mac_iveiv_entry { | |||
1936 | #define BBP47_TSSI_ADC6 FIELD8(0x80) | 1943 | #define BBP47_TSSI_ADC6 FIELD8(0x80) |
1937 | 1944 | ||
1938 | /* | 1945 | /* |
1946 | * BBP 49 | ||
1947 | */ | ||
1948 | #define BBP49_UPDATE_FLAG FIELD8(0x01) | ||
1949 | |||
1950 | /* | ||
1939 | * BBP 109 | 1951 | * BBP 109 |
1940 | */ | 1952 | */ |
1941 | #define BBP109_TX0_POWER FIELD8(0x0f) | 1953 | #define BBP109_TX0_POWER FIELD8(0x0f) |