diff options
author | Shiang Tu <shiang_tu@ralinktech.com> | 2011-02-20 07:57:22 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-21 15:40:00 -0500 |
commit | fe59147c4f42a491a77b788571c37f0a0be6f41d (patch) | |
tree | 3ae8b08d575a2eac300f9a91995034f2b294a2b8 /drivers | |
parent | 6f492b6d38e18f8d023137231c5d717068deb28d (diff) |
rt2x00: Add/Modify the GPIO register definition
Revise/Add GPIO register related definitions
Signed-off-by: Shiang Tu <shiang_tu@ralinktech.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800.h | 10 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h index d3a693b0e706..591ac32b014e 100644 --- a/drivers/net/wireless/rt2x00/rt2800.h +++ b/drivers/net/wireless/rt2x00/rt2800.h | |||
@@ -281,8 +281,14 @@ | |||
281 | #define GPIO_CTRL_CFG_BIT5 FIELD32(0x00000020) | 281 | #define GPIO_CTRL_CFG_BIT5 FIELD32(0x00000020) |
282 | #define GPIO_CTRL_CFG_BIT6 FIELD32(0x00000040) | 282 | #define GPIO_CTRL_CFG_BIT6 FIELD32(0x00000040) |
283 | #define GPIO_CTRL_CFG_BIT7 FIELD32(0x00000080) | 283 | #define GPIO_CTRL_CFG_BIT7 FIELD32(0x00000080) |
284 | #define GPIO_CTRL_CFG_BIT8 FIELD32(0x00000100) | 284 | #define GPIO_CTRL_CFG_GPIOD_BIT0 FIELD32(0x00000100) |
285 | #define GPIO_CTRL_CFG_GPIOD FIELD32(0x00000800) | 285 | #define GPIO_CTRL_CFG_GPIOD_BIT1 FIELD32(0x00000200) |
286 | #define GPIO_CTRL_CFG_GPIOD_BIT2 FIELD32(0x00000400) | ||
287 | #define GPIO_CTRL_CFG_GPIOD_BIT3 FIELD32(0x00000800) | ||
288 | #define GPIO_CTRL_CFG_GPIOD_BIT4 FIELD32(0x00001000) | ||
289 | #define GPIO_CTRL_CFG_GPIOD_BIT5 FIELD32(0x00002000) | ||
290 | #define GPIO_CTRL_CFG_GPIOD_BIT6 FIELD32(0x00004000) | ||
291 | #define GPIO_CTRL_CFG_GPIOD_BIT7 FIELD32(0x00008000) | ||
286 | 292 | ||
287 | /* | 293 | /* |
288 | * MCU_CMD_CFG | 294 | * MCU_CMD_CFG |
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 55109656eabb..5dd10589cff8 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -1392,7 +1392,7 @@ static void rt2800_set_ant_diversity(struct rt2x00_dev *rt2x00dev, | |||
1392 | eesk_pin, 0); | 1392 | eesk_pin, 0); |
1393 | 1393 | ||
1394 | rt2800_register_read(rt2x00dev, GPIO_CTRL_CFG, ®); | 1394 | rt2800_register_read(rt2x00dev, GPIO_CTRL_CFG, ®); |
1395 | rt2x00_set_field32(®, GPIO_CTRL_CFG_GPIOD, 0); | 1395 | rt2x00_set_field32(®, GPIO_CTRL_CFG_GPIOD_BIT3, 0); |
1396 | rt2x00_set_field32(®, GPIO_CTRL_CFG_BIT3, gpio_bit3); | 1396 | rt2x00_set_field32(®, GPIO_CTRL_CFG_BIT3, gpio_bit3); |
1397 | rt2800_register_write(rt2x00dev, GPIO_CTRL_CFG, reg); | 1397 | rt2800_register_write(rt2x00dev, GPIO_CTRL_CFG, reg); |
1398 | } | 1398 | } |