Changeset 35960


Ignore:
Timestamp:
2013-03-11T16:55:19+01:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: enabling control GPIO14 and GPIO15 on MR3040/MR11U

LAN1 and LAN2 LEDs not present (it pulled to ground via
resistors) on MR3040 and MR11U devices. This little patch
enabling ability to control GPIO14 and GPIO15.

Patch-by: Dmytro <dioptimizer@…>
Patchwork: http://patchwork.openwrt.org/patch/3439/
Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr11u.c

    r35037 r35960  
    1313 
    1414#include <asm/mach-ath79/ath79.h> 
     15#include <asm/mach-ath79/ar71xx_regs.h> 
    1516 
     17#include "common.h" 
    1618#include "dev-eth.h" 
    1719#include "dev-gpio-buttons.h" 
     
    8688        u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); 
    8789 
     90        /* Disable hardware control LAN1 and LAN2 LEDs, enabling GPIO14 and GPIO15 */ 
     91        ath79_gpio_function_disable(AR933X_GPIO_FUNC_ETH_SWITCH_LED1_EN | 
     92                                    AR933X_GPIO_FUNC_ETH_SWITCH_LED2_EN); 
     93 
    8894        /* disable PHY_SWAP and PHY_ADDR_SWAP bits */ 
    8995        ath79_setup_ar933x_phy4_switch(false, false); 
Note: See TracChangeset for help on using the changeset viewer.