aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2011-02-05 15:08:18 +0000
committerJohn Crispin <blogic@openwrt.org>2011-02-05 15:08:18 +0000
commit870ca1f94ea0644a81ea578fa22fa65b720da170 (patch)
treeb0528433c3b225a9322d72fe90324e3bfe366fff /package
parent1ea84ee981350122e64f93257d2270fe78dd3db0 (diff)
downloadupstream-870ca1f94ea0644a81ea578fa22fa65b720da170.tar.gz
upstream-870ca1f94ea0644a81ea578fa22fa65b720da170.tar.bz2
upstream-870ca1f94ea0644a81ea578fa22fa65b720da170.zip
[madwifi]
* fixe up ifxmips patch for eeprom emulation to work with lantiq target git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25369 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/354-ifxmips_eeprom.patch18
1 files changed, 7 insertions, 11 deletions
diff --git a/package/madwifi/patches/354-ifxmips_eeprom.patch b/package/madwifi/patches/354-ifxmips_eeprom.patch
index 635857ac24..134253466d 100644
--- a/package/madwifi/patches/354-ifxmips_eeprom.patch
+++ b/package/madwifi/patches/354-ifxmips_eeprom.patch
@@ -1,13 +1,12 @@
--- a/ath_hal/ah_os.c
+++ b/ath_hal/ah_os.c
-@@ -343,6 +343,46 @@ EXPORT_SYMBOL(ath_hal_func);
+@@ -343,6 +343,45 @@
* NB: see the comments in ah_osdep.h about byte-swapping register
* reads and writes to understand what's going on below.
*/
+
-+#ifdef CONFIG_IFXMIPS
-+extern int ifxmips_has_brn_block(void);
-+static int ifxmips_emulate = 0;
++#ifdef CONFIG_LANTIQ
++extern int lantiq_emulate_madwifi_eep;
+#define EEPROM_EMULATION 1
+#endif
+
@@ -47,13 +46,13 @@
void __ahdecl
ath_hal_reg_write(struct ath_hal *ah, u_int reg, u_int32_t val)
{
-@@ -351,20 +391,33 @@ ath_hal_reg_write(struct ath_hal *ah, u_
+@@ -351,20 +390,33 @@
ath_hal_printf(ah, "%s: WRITE 0x%x <= 0x%x\n",
(ath_hal_func ?: "unknown"), reg, val);
#endif
- _OS_REG_WRITE(ah, reg, val);
+#ifdef EEPROM_EMULATION
-+ if((reg >= 0x6000) && (reg <= 0x6010) && ifxmips_emulate)
++ if((reg >= 0x6000) && (reg <= 0x6010) && lantiq_emulate_madwifi_eep)
+ {
+ val = ath_hal_eeprom(ah, reg, val, 1);
+ } else
@@ -70,7 +69,7 @@
- u_int32_t val;
+ u_int32_t val;
+#ifdef EEPROM_EMULATION
-+ if((reg >= 0x6000) && (reg <= 0x6010) && ifxmips_emulate)
++ if((reg >= 0x6000) && (reg <= 0x6010) && lantiq_emulate_madwifi_eep)
+ {
+ val = ath_hal_eeprom(ah, reg, 0, 0);
+ } else
@@ -85,14 +84,11 @@
(ath_hal_func ?: "unknown"), reg, val);
#endif
return val;
-@@ -581,7 +634,9 @@ init_ath_hal(void)
+@@ -581,7 +633,6 @@
{
const char *sep;
int i;
-
-+#ifdef CONFIG_IFXMIPS
-+ ifxmips_emulate = ifxmips_has_brn_block();
-+#endif
printk(KERN_INFO "%s: %s (", dev_info, ath_hal_version);
sep = "";
for (i = 0; ath_hal_buildopts[i] != NULL; i++) {