Skip to content
Snippets Groups Projects
Commit 5c5e1c0a authored by Gabor Juhos's avatar Gabor Juhos
Browse files

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: default avatarDmytro <dioptimizer@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3439/


Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35960
parent 257bfc21
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,9 @@
#include <linux/gpio.h>
#include <asm/mach-ath79/ath79.h>
#include <asm/mach-ath79/ar71xx_regs.h>
#include "common.h"
#include "dev-eth.h"
#include "dev-gpio-buttons.h"
#include "dev-leds-gpio.h"
......@@ -85,6 +87,10 @@ static void __init common_setup(void)
u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
/* Disable hardware control LAN1 and LAN2 LEDs, enabling GPIO14 and GPIO15 */
ath79_gpio_function_disable(AR933X_GPIO_FUNC_ETH_SWITCH_LED1_EN |
AR933X_GPIO_FUNC_ETH_SWITCH_LED2_EN);
/* disable PHY_SWAP and PHY_ADDR_SWAP bits */
ath79_setup_ar933x_phy4_switch(false, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment