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
a2a5598c
Commit
a2a5598c
authored
14 years ago
by
Gabor Juhos
Browse files
Options
Downloads
Patches
Plain Diff
ar71xx: add wlan led for the TL-WR941ND
SVN-Revision: 24612
parent
e421d257
No related branches found
No related tags found
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/tl-wr941nd
+22
-0
22 additions, 0 deletions
target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr941nd
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
+5
-0
5 additions, 0 deletions
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
with
27 additions
and
0 deletions
target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr941nd
0 → 100755
+
22
−
0
View file @
a2a5598c
#!/bin/sh
#
# Copyright (C) 2010 OpenWrt.org
#
.
/lib/ar71xx.sh
board
=
$(
ar71xx_board_name
)
tl_wr941nd_set_wlan_led
()
{
uci batch
<<
EOF
set system.wlan_led=led
set system.wlan_led.name='WLAN'
set system.wlan_led.sysfs='tl-wr941nd:green:wlan'
set system.wlan_led.trigger='phy0tpt'
commit system
EOF
}
if
[
"
${
board
}
"
==
"tl-wr941nd"
]
;
then
tl_wr941nd_set_wlan_led
fi
This diff is collapsed.
Click to expand it.
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
+
5
−
0
View file @
a2a5598c
...
...
@@ -24,6 +24,7 @@
#define TL_WR941ND_GPIO_LED_SYSTEM 2
#define TL_WR941ND_GPIO_LED_QSS_RED 4
#define TL_WR941ND_GPIO_LED_QSS_GREEN 5
#define TL_WR941ND_GPIO_LED_WLAN 9
#define TL_WR941ND_GPIO_BTN_RESET 3
#define TL_WR941ND_GPIO_BTN_QSS 7
...
...
@@ -76,6 +77,10 @@ static struct gpio_led tl_wr941nd_leds_gpio[] __initdata = {
},
{
.
name
=
"tl-wr941nd:green:qss"
,
.
gpio
=
TL_WR941ND_GPIO_LED_QSS_GREEN
,
},
{
.
name
=
"tl-wr941nd:green:wlan"
,
.
gpio
=
TL_WR941ND_GPIO_LED_WLAN
,
.
active_low
=
1
,
}
};
...
...
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