Changeset 40368


Ignore:
Timestamp:
2014-04-03T16:26:46+02:00 (4 years ago)
Author:
blogic
Message:

lantiq: make td8970 wifi led work

Signed-off-by: John Crispin <blogic@…>

Location:
trunk/target/linux/lantiq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/dts/TDW8970.dts

    r38730 r40368  
    189189                compatible = "ath9k,eeprom"; 
    190190                ath,eep-flash = <&ath9k_cal 0x21000>; 
    191                 ath,pci-slot = <0>; 
     191                ath,led-pin = <0>; 
    192192        }; 
    193193 
  • trunk/target/linux/lantiq/patches-3.10/0202-lantiq_ath5k.patch

    r40323 r40368  
    11Index: linux-3.10.34/arch/mips/lantiq/xway/ath_eep.c 
    22=================================================================== 
    3 --- linux-3.10.34.orig/arch/mips/lantiq/xway/ath_eep.c  2014-03-29 20:17:33.826386600 +0000 
    4 +++ linux-3.10.34/arch/mips/lantiq/xway/ath_eep.c       2014-03-29 20:18:19.610387315 +0000 
    5 @@ -36,6 +36,7 @@ 
     3--- linux-3.10.34.orig/arch/mips/lantiq/xway/ath_eep.c  2014-04-03 13:25:03.128464891 +0100 
     4+++ linux-3.10.34/arch/mips/lantiq/xway/ath_eep.c       2014-04-03 13:35:30.432482868 +0100 
     5@@ -36,10 +36,11 @@ 
    66        return 0; 
    77 } 
     
    1111 { 
    1212        struct device_node *np = pdev->dev.of_node, *mtd_np; 
    13 @@ -112,6 +113,12 @@ 
     13-       int mac_offset; 
     14+       int mac_offset, led_pin; 
     15        u32 mac_inc = 0, pci_slot = 0; 
     16        int i; 
     17        struct mtd_info *the_mtd; 
     18@@ -112,6 +113,18 @@ 
    1419        if (!of_property_read_u32(np, "ath,pci-slot", &pci_slot)) { 
    1520                ltq_pci_ath_fixup(pci_slot, ath9k_pdata.eeprom_data); 
     
    2126+                               pci_fixup_device(pci_fixup_early, d); 
    2227+               } 
     28+       } 
     29+ 
     30+       if (!of_property_read_u32(np, "ath,led-pin", &led_pin)) { 
     31+               ath9k_pdata.led_pin = led_pin; 
     32+ 
     33+               dev_info(&pdev->dev, "using led pin %d.\n", led_pin); 
    2334        } 
    2435  
    2536        dev_info(&pdev->dev, "loaded ath9k eeprom\n"); 
    26 @@ -132,20 +139,19 @@ 
     37@@ -132,20 +145,19 @@ 
    2738        }, 
    2839 }; 
     
    4859        return platform_driver_probe(&ath9k_eeprom_driver, of_ath9k_eeprom_probe); 
    4960 } 
    50 @@ -247,4 +253,4 @@ 
     61@@ -247,4 +259,4 @@ 
    5162 { 
    5263        return platform_driver_probe(&ath5k_eeprom_driver, of_ath5k_eeprom_probe); 
Note: See TracChangeset for help on using the changeset viewer.