aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-01-19 10:16:04 +0000
committerJohn Crispin <john@openwrt.org>2016-01-19 10:16:04 +0000
commited72c5f846941dcca3eab1d72c48472b383752e9 (patch)
treec993281e19195b82f17834134fad51815a293843 /target/linux/ar71xx/base-files
parent9f7bbc649c09a31957b6cc7c04f5b6780712b714 (diff)
downloadupstream-ed72c5f846941dcca3eab1d72c48472b383752e9.tar.gz
upstream-ed72c5f846941dcca3eab1d72c48472b383752e9.tar.bz2
upstream-ed72c5f846941dcca3eab1d72c48472b383752e9.zip
ar71xx: add support for Netgear WPN824N
Add support for Netgear WPN824N. Hardware specs: * AR7240, 4 LAN ports, 1 WAN port * AR9285 WLAN * 32 MB RAM * 4 MB Flash * 16 LEDs (LAN, WAN and Power/Status contain two LEDs for dual color effect) * 3 Buttons (not supported) Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> SVN-Revision: 48356
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds20
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network3
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rw-r--r--target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh3
6 files changed, 29 insertions, 4 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index cfb42a590a..151eac2db8 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -684,7 +684,25 @@ wnr2000-v4)
ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x08"
ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x10"
ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1"
- ;;
+ ;;
+
+wpn824n)
+ ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
+ ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
+ ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02"
+ ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04"
+ ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08"
+ ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10"
+ ucidef_set_led_default "lan1green" "LAN1 (green)" "netgear:green:lan1" "0"
+ ucidef_set_led_default "lan2green" "LAN2 (green)" "netgear:green:lan2" "0"
+ ucidef_set_led_default "lan3green" "LAN3 (green)" "netgear:green:lan3" "0"
+ ucidef_set_led_default "lan4green" "LAN4 (green)" "netgear:green:lan4" "0"
+ ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
+ ucidef_set_led_default "wps1" "WPS1" "netgear:blue:wps1" "0"
+ ucidef_set_led_default "wps2" "WPS2" "netgear:blue:wps2" "0"
+ ucidef_set_led_default "status" "STATUS" "netgear:amber:status" "0"
+ ucidef_set_led_default "test" "TEST" "netgear:amber:test" "0"
+ ;;
wzr-hp-ag300h)
ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 190b6932a9..944ced3a16 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -227,7 +227,8 @@ wnr2000-v3 |\
wnr2000-v4 |\
wnr2200 |\
wnr612-v2 |\
-wnr1000-v2)
+wnr1000-v2 |\
+wpn824n)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4@eth1" # XXX: confirm!
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 13a0a98d30..c0e73ad28b 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -370,7 +370,8 @@ get_status_led() {
wnr2000 | \
wnr2200 |\
wnr612-v2 |\
- wnr1000-v2)
+ wnr1000-v2 |\
+ wpn824n)
status_led="netgear:green:power"
;;
wp543)
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 678482eb15..34d5741323 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -974,6 +974,9 @@ ar71xx_board_detect() {
*"WNR1000 V2")
name="wnr1000-v2"
;;
+ *WPN824N)
+ name="wpn824n"
+ ;;
*WRT160NL)
name="wrt160nl"
;;
diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
index 38a0382d00..c4177e1099 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
+++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
@@ -41,6 +41,7 @@ set_preinit_iface() {
wnr2200 |\
wnr612-v2 |\
wnr1000-v2 |\
+ wpn824n |\
wpe72)
ifname=eth1
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 1f6eaf2331..0276a69467 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -431,7 +431,8 @@ platform_check_image() {
wndr3700 | \
wnr2000-v3 | \
wnr612-v2 | \
- wnr1000-v2)
+ wnr1000-v2 | \
+ wpn824n)
local hw_magic
hw_magic="$(ar71xx_get_mtd_part_magic firmware)"