Changeset 27662


Ignore:
Timestamp:
2011-07-17T21:27:14+02:00 (5 years ago)
Author:
blogic
Message:

better lantiq support in madwifi

Allow for each lantiq target (without wifi eeprom) to define where
wireless configuration data is on flash. Patch also adds support for
sx763 lantiq target.

Signed-off-by: Luka Perkov <openwrt@…>

Location:
trunk/package/madwifi/patches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/madwifi/patches/353-devid.patch

    r13096 r27662  
    11--- a/ath/if_ath_pci.c 
    22+++ b/ath/if_ath_pci.c 
    3 @@ -114,11 +114,13 @@ static struct pci_device_id ath_pci_id_t 
     3@@ -114,11 +114,15 @@ static struct pci_device_id ath_pci_id_t 
    44        { 0x168c, 0x0023, PCI_ANY_ID, PCI_ANY_ID }, 
    55        { 0x168c, 0x0024, PCI_ANY_ID, PCI_ANY_ID }, 
    66        { 0x168c, 0x9013, PCI_ANY_ID, PCI_ANY_ID }, /* sonicwall */ 
     7+       { 0x168c, 0xff16, PCI_ANY_ID, PCI_ANY_ID }, 
    78+       { 0x168c, 0xff1a, PCI_ANY_ID, PCI_ANY_ID }, 
    89        { 0 } 
     
    1213-       { 0x9013, 0x0013 } 
    1314+       { 0x9013, 0x0013 }, 
     15+       { 0xff16, 0x0013 }, 
    1416+       { 0xff1a, 0x001a } 
    1517 }; 
  • trunk/package/madwifi/patches/354-ifxmips_eeprom.patch

    r25369 r27662  
    11--- a/ath_hal/ah_os.c 
    22+++ b/ath_hal/ah_os.c 
    3 @@ -343,6 +343,45 @@ 
     3@@ -343,6 +343,46 @@ EXPORT_SYMBOL(ath_hal_func); 
    44  * NB: see the comments in ah_osdep.h about byte-swapping register 
    55  *     reads and writes to understand what's going on below. 
     
    88+#ifdef CONFIG_LANTIQ 
    99+extern int lantiq_emulate_madwifi_eep; 
     10+extern unsigned long long lantiq_madwifi_eep_addr; 
    1011+#define EEPROM_EMULATION 1 
    1112+#endif 
     
    3233+                       break; 
    3334+               case 0x6004: 
    34 +                       val = cpu_to_le16(__raw_readw((u16 *) KSEG1ADDR(0xb07f0400 + addrsel))); 
     35+                       val = cpu_to_le16(__raw_readw((u16 *) KSEG1ADDR(lantiq_madwifi_eep_addr + addrsel))); 
    3536+                       /* this forces the regdomain to 0x00 (worldwide), as the original setting 
    3637+                        * causes issues with the HAL */ 
     
    4748 ath_hal_reg_write(struct ath_hal *ah, u_int reg, u_int32_t val) 
    4849 { 
    49 @@ -351,20 +390,33 @@ 
     50@@ -351,20 +391,33 @@ ath_hal_reg_write(struct ath_hal *ah, u_ 
    5051                ath_hal_printf(ah, "%s: WRITE 0x%x <= 0x%x\n",  
    5152                                (ath_hal_func ?: "unknown"), reg, val); 
     
    8586 #endif 
    8687        return val; 
    87 @@ -581,7 +633,6 @@ 
     88@@ -581,7 +634,6 @@ init_ath_hal(void) 
    8889 { 
    8990        const char *sep; 
Note: See TracChangeset for help on using the changeset viewer.