Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 237459
b: refs/heads/master
c: 60687ba
h: refs/heads/master
i:
  237457: ef45240
  237455: 19b7bfc
v: v3
  • Loading branch information
RA-Shiang Tu authored and John W. Linville committed Feb 21, 2011
1 parent 5e5b3d0 commit ee9e546
Show file tree
Hide file tree
Showing 6 changed files with 441 additions and 56 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe59147c4f42a491a77b788571c37f0a0be6f41d
refs/heads/master: 60687ba710359f32343b7630dc05d3811ef5bf4c
12 changes: 12 additions & 0 deletions trunk/drivers/net/wireless/rt2x00/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ config RT2800PCI_RT35XX
Support for these devices is non-functional at the moment and is
intended for testers and developers.

config RT2800PCI_RT53XX
bool "rt2800-pci - Include support for rt53xx devices (EXPERIMENTAL)"
depends on EXPERIMENTAL
default n
---help---
This adds support for rt53xx wireless chipset family to the
rt2800pci driver.
Supported chips: RT5390

Support for these devices is non-functional at the moment and is
intended for testers and developers.

endif

config RT2500USB
Expand Down
59 changes: 58 additions & 1 deletion trunk/drivers/net/wireless/rt2x00/rt2800.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
* RF3320 2.4G 1T1R(RT3350/RT3370/RT3390)
* RF3322 2.4G 2T2R(RT3352/RT3371/RT3372/RT3391/RT3392)
* RF3853 2.4G/5G 3T3R(RT3883/RT3563/RT3573/RT3593/RT3662)
* RF5390 2.4G 1T1R
*/
#define RF2820 0x0001
#define RF2850 0x0002
Expand All @@ -65,6 +66,7 @@
#define RF3320 0x000b
#define RF3322 0x000c
#define RF3853 0x000d
#define RF5390 0x5390

/*
* Chipset revisions.
Expand All @@ -77,6 +79,7 @@
#define REV_RT3071E 0x0211
#define REV_RT3090E 0x0211
#define REV_RT3390E 0x0211
#define REV_RT5390F 0x0502

/*
* Signal information.
Expand Down Expand Up @@ -120,6 +123,13 @@
#define E2PROM_CSR_LOAD_STATUS FIELD32(0x00000040)
#define E2PROM_CSR_RELOAD FIELD32(0x00000080)

/*
* AUX_CTRL: Aux/PCI-E related configuration
*/
#define AUX_CTRL 0x10c
#define AUX_CTRL_WAKE_PCIE_EN FIELD32(0x00000002)
#define AUX_CTRL_FORCE_PCIE_CLK FIELD32(0x00000400)

/*
* OPT_14: Unknown register used by rt3xxx devices.
*/
Expand Down Expand Up @@ -454,7 +464,7 @@
*/
#define RF_CSR_CFG 0x0500
#define RF_CSR_CFG_DATA FIELD32(0x000000ff)
#define RF_CSR_CFG_REGNUM FIELD32(0x00001f00)
#define RF_CSR_CFG_REGNUM FIELD32(0x00003f00)
#define RF_CSR_CFG_WRITE FIELD32(0x00010000)
#define RF_CSR_CFG_BUSY FIELD32(0x00020000)

Expand Down Expand Up @@ -1736,6 +1746,13 @@ struct mac_iveiv_entry {
*/
#define BBP4_TX_BF FIELD8(0x01)
#define BBP4_BANDWIDTH FIELD8(0x18)
#define BBP4_MAC_IF_CTRL FIELD8(0x40)

/*
* BBP 109
*/
#define BBP109_TX0_POWER FIELD8(0x0f)
#define BBP109_TX1_POWER FIELD8(0xf0)

/*
* BBP 138: Unknown
Expand All @@ -1745,6 +1762,11 @@ struct mac_iveiv_entry {
#define BBP138_TX_DAC1 FIELD8(0x20)
#define BBP138_TX_DAC2 FIELD8(0x40)

/*
* BBP 152: Rx Ant
*/
#define BBP152_RX_DEFAULT_ANT FIELD8(0x80)

/*
* RFCSR registers
* The wordsize of the RFCSR is 8 bits.
Expand All @@ -1754,11 +1776,17 @@ struct mac_iveiv_entry {
* RFCSR 1:
*/
#define RFCSR1_RF_BLOCK_EN FIELD8(0x01)
#define RFCSR1_PLL_PD FIELD8(0x02)
#define RFCSR1_RX0_PD FIELD8(0x04)
#define RFCSR1_TX0_PD FIELD8(0x08)
#define RFCSR1_RX1_PD FIELD8(0x10)
#define RFCSR1_TX1_PD FIELD8(0x20)

/*
* RFCSR 2:
*/
#define RFCSR2_RESCAL_EN FIELD8(0x80)

/*
* RFCSR 6:
*/
Expand All @@ -1770,6 +1798,11 @@ struct mac_iveiv_entry {
*/
#define RFCSR7_RF_TUNING FIELD8(0x01)

/*
* RFCSR 11:
*/
#define RFCSR11_R FIELD8(0x03)

/*
* RFCSR 12:
*/
Expand All @@ -1791,6 +1824,7 @@ struct mac_iveiv_entry {
#define RFCSR17_TXMIXER_GAIN FIELD8(0x07)
#define RFCSR17_TX_LO1_EN FIELD8(0x08)
#define RFCSR17_R FIELD8(0x20)
#define RFCSR17_CODE FIELD8(0x7f)

/*
* RFCSR 20:
Expand Down Expand Up @@ -1823,6 +1857,9 @@ struct mac_iveiv_entry {
/*
* RFCSR 30:
*/
#define RFCSR30_TX_H20M FIELD8(0x02)
#define RFCSR30_RX_H20M FIELD8(0x04)
#define RFCSR30_RX_VCM FIELD8(0x18)
#define RFCSR30_RF_CALIBRATION FIELD8(0x80)

/*
Expand All @@ -1831,6 +1868,21 @@ struct mac_iveiv_entry {
#define RFCSR31_RX_AGC_FC FIELD8(0x1f)
#define RFCSR31_RX_H20M FIELD8(0x20)

/*
* RFCSR 38:
*/
#define RFCSR38_RX_LO1_EN FIELD8(0x20)

/*
* RFCSR 39:
*/
#define RFCSR39_RX_LO2_EN FIELD8(0x80)

/*
* RFCSR 49:
*/
#define RFCSR49_TX FIELD8(0x3f)

/*
* RF registers
*/
Expand Down Expand Up @@ -1863,6 +1915,11 @@ struct mac_iveiv_entry {
* The wordsize of the EEPROM is 16 bits.
*/

/*
* Chip ID
*/
#define EEPROM_CHIP_ID 0x0000

/*
* EEPROM Version
*/
Expand Down
Loading

0 comments on commit ee9e546

Please sign in to comment.