Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
90bfef9e
Commit
90bfef9e
authored
13 years ago
by
Gabor Juhos
Browse files
Options
Downloads
Patches
Plain Diff
ar71xx: allow to use LAN LED on the TL-WA901N/ND boards
SVN-Revision: 29653
parent
5eb502d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
target/linux/ar71xx/base-files/etc/uci-defaults/leds
+4
-0
4 additions, 0 deletions
target/linux/ar71xx/base-files/etc/uci-defaults/leds
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
+11
-0
11 additions, 0 deletions
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
with
15 additions
and
0 deletions
target/linux/ar71xx/base-files/etc/uci-defaults/leds
+
4
−
0
View file @
90bfef9e
...
...
@@ -145,6 +145,10 @@ tl-mr3420 )
set_led_usbdev
"usb"
"USB"
"tp-link:green:3g"
"1-1"
;;
tl-wa901nd
)
set_led_netdev
"lan"
"LAN"
"tp-link:green:lan"
"eth0"
;;
tl-wr741nd
)
set_led_netdev
"wan"
"WAN"
"tp-link:green:wan"
"eth1"
set_led_switch
"lan1"
"LAN1"
"tp-link:green:lan1"
"switch0"
"0x02"
...
...
This diff is collapsed.
Click to expand it.
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
+
11
−
0
View file @
90bfef9e
...
...
@@ -20,6 +20,7 @@
#define TL_WA901ND_GPIO_LED_QSS 0
#define TL_WA901ND_GPIO_LED_SYSTEM 1
#define TL_WA901ND_GPIO_LED_LAN 13
#define TL_WA901ND_GPIO_BTN_RESET 11
#define TL_WA901ND_GPIO_BTN_QSS 12
...
...
@@ -38,6 +39,10 @@ static struct flash_platform_data tl_wa901nd_flash_data = {
static
struct
gpio_led
tl_wa901nd_leds_gpio
[]
__initdata
=
{
{
.
name
=
"tp-link:green:lan"
,
.
gpio
=
TL_WA901ND_GPIO_LED_LAN
,
.
active_low
=
1
,
},
{
.
name
=
"tp-link:green:system"
,
.
gpio
=
TL_WA901ND_GPIO_LED_SYSTEM
,
.
active_low
=
1
,
...
...
@@ -71,6 +76,12 @@ static void __init tl_wa901nd_setup(void)
u8
*
mac
=
(
u8
*
)
KSEG1ADDR
(
0x1f01fc00
);
u8
*
ee
=
(
u8
*
)
KSEG1ADDR
(
0x1fff1000
);
ar71xx_gpio_function_disable
(
AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN
|
AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN
|
AR724X_GPIO_FUNC_ETH_SWITCH_LED2_EN
|
AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN
|
AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN
);
/*
* ar71xx_eth0 would be the WAN port, but is not connected on
* the TL-WA901ND. ar71xx_eth1 connects to the internal switch chip,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment