aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/rt2860
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-08-23 15:31:54 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:23 -0700
commit5cc86f28ca09738652000e73827a5579279ef810 (patch)
tree92505d71185f53e91dad9c9401a1b73b549c0c63 /drivers/staging/rt2860
parent30d36c28d03b099d5bc94dab50e91a3940f84a22 (diff)
Staging: rt2870: add eFuse support
rt3070: * remove unused bEEPROMFile field from RTMP_ADAPTER rt2870: * propagate eFuse support from rt3070 Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2860')
-rw-r--r--drivers/staging/rt2860/common/eeprom.c7
-rw-r--r--drivers/staging/rt2860/common/rtmp_init.c10
-rw-r--r--drivers/staging/rt2860/rtmp.h7
-rw-r--r--drivers/staging/rt2860/sta_ioctl.c6
4 files changed, 9 insertions, 21 deletions
diff --git a/drivers/staging/rt2860/common/eeprom.c b/drivers/staging/rt2860/common/eeprom.c
index 3a529667067..fb5e52a00bf 100644
--- a/drivers/staging/rt2860/common/eeprom.c
+++ b/drivers/staging/rt2860/common/eeprom.c
@@ -291,8 +291,7 @@ VOID RTMP_EEPROM_WRITE16(
#endif
}
-//2008/09/11:KH add to support efuse<--
-#ifdef RT30xx
+#ifdef RT2870
/*
========================================================================
@@ -1485,6 +1484,4 @@ NTSTATUS eFuseWriteRegistersFromBin(
return TRUE;
}
-
-#endif // RT30xx //
-//2008/09/11:KH add to support efuse-->
+#endif
diff --git a/drivers/staging/rt2860/common/rtmp_init.c b/drivers/staging/rt2860/common/rtmp_init.c
index 87684948bfc..df0e1e9a8d2 100644
--- a/drivers/staging/rt2860/common/rtmp_init.c
+++ b/drivers/staging/rt2860/common/rtmp_init.c
@@ -2186,10 +2186,8 @@ NDIS_STATUS NICInitializeAsic(
UINT32 MacCsr0 = 0;
NTSTATUS Status;
UCHAR Value = 0xff;
-#endif // RT2870 //
-#ifdef RT30xx
UINT32 eFuseCtrl;
-#endif // RT30xx //
+#endif
USHORT KeyIdx;
INT i,apidx;
@@ -2501,8 +2499,7 @@ NDIS_STATUS NICInitializeAsic(
Counter&=0xffffff00;
Counter|=0x000001e;
RTMP_IO_WRITE32(pAd, USB_CYC_CFG, Counter);
-#endif // RT2870 //
-#ifdef RT30xx
+
pAd->bUseEfuse=FALSE;
RTMP_IO_READ32(pAd, EFUSE_CTRL, &eFuseCtrl);
pAd->bUseEfuse = ( (eFuseCtrl & 0x80000000) == 0x80000000) ? 1 : 0;
@@ -2513,9 +2510,8 @@ NDIS_STATUS NICInitializeAsic(
else
{
DBGPRINT(RT_DEBUG_TRACE, ("NVM is EEPROM\n"));
-
}
-#endif // RT30xx //
+#endif
{
// for rt2860E and after, init TXOP_CTRL_CFG with 0x583f. This is for extension channel overlapping IOT.
diff --git a/drivers/staging/rt2860/rtmp.h b/drivers/staging/rt2860/rtmp.h
index 5d1fb007983..92411246cf9 100644
--- a/drivers/staging/rt2860/rtmp.h
+++ b/drivers/staging/rt2860/rtmp.h
@@ -2938,12 +2938,9 @@ typedef struct _RTMP_ADAPTER
UINT8 PM_FlgSuspend;
-#ifdef RT30xx
-//======efuse
+#ifdef RT2870
BOOLEAN bUseEfuse;
- BOOLEAN bEEPROMFile;
-#endif // RT30xx //
-
+#endif
} RTMP_ADAPTER, *PRTMP_ADAPTER;
//
diff --git a/drivers/staging/rt2860/sta_ioctl.c b/drivers/staging/rt2860/sta_ioctl.c
index 1556bf32e50..b6cdf13fbfa 100644
--- a/drivers/staging/rt2860/sta_ioctl.c
+++ b/drivers/staging/rt2860/sta_ioctl.c
@@ -229,13 +229,11 @@ static struct {
{"ForceGF", Set_ForceGF_Proc},
{"LongRetry", Set_LongRetryLimit_Proc},
{"ShortRetry", Set_ShortRetryLimit_Proc},
-//2008/09/11:KH add to support efuse<--
-#ifdef RT30xx
+#ifdef RT2870
{"efuseFreeNumber", set_eFuseGetFreeBlockCount_Proc},
{"efuseDump", set_eFusedump_Proc},
{"efuseLoadFromBin", set_eFuseLoadFromBin_Proc},
-#endif // RT30xx //
-//2008/09/11:KH add to support efuse-->
+#endif
{NULL,}
};