0015-ar71xx-fix-ethernet-LEDs-on-the-TL-WDR3500.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From: juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
  2. Date: Mon, 25 Mar 2013 06:40:03 +0000
  3. Subject: ar71xx: fix ethernet LEDs on the TL-WDR3500
  4. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  5. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36122 3c298f89-4303-0410-b956-a3cf2f4a3e73
  6. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c
  7. index 5020ba4..452c20b 100644
  8. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c
  9. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c
  10. @@ -33,6 +33,11 @@
  11. #define WDR3500_GPIO_LED_WLAN2G 13
  12. #define WDR3500_GPIO_LED_SYSTEM 14
  13. #define WDR3500_GPIO_LED_QSS 15
  14. +#define WDR3500_GPIO_LED_WAN 18
  15. +#define WDR3500_GPIO_LED_LAN1 19
  16. +#define WDR3500_GPIO_LED_LAN2 20
  17. +#define WDR3500_GPIO_LED_LAN3 21
  18. +#define WDR3500_GPIO_LED_LAN4 22
  19. #define WDR3500_GPIO_BTN_WPS 16
  20. #define WDR3500_GPIO_BTN_RFKILL 17
  21. @@ -146,6 +151,17 @@ static void __init wdr3500_setup(void)
  22. GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
  23. "USB power");
  24. ath79_register_usb();
  25. +
  26. + ath79_gpio_output_select(WDR3500_GPIO_LED_LAN1,
  27. + AR934X_GPIO_OUT_LED_LINK3);
  28. + ath79_gpio_output_select(WDR3500_GPIO_LED_LAN2,
  29. + AR934X_GPIO_OUT_LED_LINK2);
  30. + ath79_gpio_output_select(WDR3500_GPIO_LED_LAN3,
  31. + AR934X_GPIO_OUT_LED_LINK1);
  32. + ath79_gpio_output_select(WDR3500_GPIO_LED_LAN4,
  33. + AR934X_GPIO_OUT_LED_LINK0);
  34. + ath79_gpio_output_select(WDR3500_GPIO_LED_WAN,
  35. + AR934X_GPIO_OUT_LED_LINK4);
  36. }
  37. MIPS_MACHINE(ATH79_MACH_TL_WDR3500, "TL-WDR3500",