[rt2x00-users] [PATCH v3 1/3] rt2x00: rt2800: increase EEPROM_SIZE to 512 bytes

Gabor Juhos juhosg at openwrt.org
Tue Jun 25 07:03:22 AEST 2013

Ralink 3T chipsets are using a different EEPROM
layout than the others. The EEPROM on these devices
contain more data than the others which does not fit
into 272 byte which the rt2800 driver actually uses.

The Ralink reference driver defines EEPROM_SIZE to
512/1024 bytes for PCI/USB devices respectively.

Increase the EEPROM_SIZE constant to 512 bytes, in
order to make room for EEPROM data of 3T devices.

Signed-off-by: Gabor Juhos <juhosg at openwrt.org>
Acked-by: Helmut Schaa <helmut.schaa at googlemail.com>
Acked-by: Stanislaw Gruszka <stf_xl at wp.pl>
Acked-by: Gertjan van Wingerde <gwingerde at gmail.com>
Changes in v3: ---
Changes in v2: add Acked-by tags
 drivers/net/wireless/rt2x00/rt2800.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h
index fe43d01..d78c495 100644
--- a/drivers/net/wireless/rt2x00/rt2800.h
+++ b/drivers/net/wireless/rt2x00/rt2800.h
@@ -100,7 +100,7 @@
 #define CSR_REG_BASE			0x1000
 #define CSR_REG_SIZE			0x0800
 #define EEPROM_BASE			0x0000
-#define EEPROM_SIZE			0x0110
+#define EEPROM_SIZE			0x0200
 #define BBP_BASE			0x0000
 #define BBP_SIZE			0x00ff
 #define RF_BASE				0x0004

More information about the users mailing list