aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-11-08 08:39:48 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-11 17:09:16 -0500
commit30e840346c516ad4e36f710fa485933ccc7afa66 (patch)
treea8489add516573512e64ebd534c07963e5ba3c05 /drivers/net/wireless/rt2x00/rt2800.h
parent4116cb483ec148e30f70408ad0600304a5de2a3c (diff)
rt2800: add eFuse EEPROM support code to rt2800lib
eFuse EEPROM is used also by USB chips (i.e. RT3070) so move the needed code from rt2800pci to rt2800lib. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h
index d9b6a72e6d27..74fb5253ee23 100644
--- a/drivers/net/wireless/rt2x00/rt2800.h
+++ b/drivers/net/wireless/rt2x00/rt2800.h
@@ -362,6 +362,35 @@
362#define RF_CSR_CFG_BUSY FIELD32(0x00020000) 362#define RF_CSR_CFG_BUSY FIELD32(0x00020000)
363 363
364/* 364/*
365 * EFUSE_CSR: RT30x0 EEPROM
366 */
367#define EFUSE_CTRL 0x0580
368#define EFUSE_CTRL_ADDRESS_IN FIELD32(0x03fe0000)
369#define EFUSE_CTRL_MODE FIELD32(0x000000c0)
370#define EFUSE_CTRL_KICK FIELD32(0x40000000)
371#define EFUSE_CTRL_PRESENT FIELD32(0x80000000)
372
373/*
374 * EFUSE_DATA0
375 */
376#define EFUSE_DATA0 0x0590
377
378/*
379 * EFUSE_DATA1
380 */
381#define EFUSE_DATA1 0x0594
382
383/*
384 * EFUSE_DATA2
385 */
386#define EFUSE_DATA2 0x0598
387
388/*
389 * EFUSE_DATA3
390 */
391#define EFUSE_DATA3 0x059c
392
393/*
365 * MAC Control/Status Registers(CSR). 394 * MAC Control/Status Registers(CSR).
366 * Some values are set in TU, whereas 1 TU == 1024 us. 395 * Some values are set in TU, whereas 1 TU == 1024 us.
367 */ 396 */