Changeset 38096


Ignore:
Timestamp:
2013-09-21T16:56:24+02:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: let HW switch control WAN LED on dir-825-c1

Enable GPIO 20. This hands off control of the blue planet led to the
integrated switch. Consequently, remove the led configuration for the
blue planet led.

Signed-off-by: Sebastian Kemper <sebastian_ml@…>
Patchwork: http://patchwork.openwrt.org/patch/4080/
[juhosg: whitespace fixup]
Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c

    r38094 r38096  
    3737#define DIR825C1_GPIO_LED_WIFI_BGN              13 
    3838 
     39#define DIR825C1_GPIO_WAN_LED_ENABLE            20 
     40 
    3941#define DIR825C1_GPIO_BTN_RESET                 17 
    4042#define DIR825C1_GPIO_BTN_WPS                   16 
     
    7577        }, 
    7678        { 
    77                 .name           = "d-link:blue:planet", 
    78                 .gpio           = DIR825C1_GPIO_LED_BLUE_PLANET, 
    79                 .active_low     = 1, 
    80         }, { 
    8179                .name           = "d-link:blue:wifi_bgn", 
    8280                .gpio           = DIR825C1_GPIO_LED_WIFI_BGN, 
     
    214212                                 AR934X_GPIO_OUT_GPIO); 
    215213 
     214        gpio_request_one(DIR825C1_GPIO_WAN_LED_ENABLE, 
     215                         GPIOF_OUT_INIT_LOW, "WAN LED enable"); 
     216 
    216217        ath79_register_leds_gpio(-1, ARRAY_SIZE(dir825c1_leds_gpio), 
    217218                                 dir825c1_leds_gpio); 
Note: See TracChangeset for help on using the changeset viewer.