summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-13 09:16:15 +0000
committerJohn Crispin <john@openwrt.org>2014-06-13 09:16:15 +0000
commit6d213a644d61166c3991fafede3c9e36dffbdf1d (patch)
treef4f020d37d3d7fc0ca47ce71050ed1883cbe97db /target/linux/ramips/base-files
parent4f03c52dd8469834fc02db6032045001a5a4477b (diff)
downloadmtk-20170518-6d213a644d61166c3991fafede3c9e36dffbdf1d.zip
mtk-20170518-6d213a644d61166c3991fafede3c9e36dffbdf1d.tar.gz
mtk-20170518-6d213a644d61166c3991fafede3c9e36dffbdf1d.tar.bz2
ramips: add asiarf awapn2403 support
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41177
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom1
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/01_leds3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network7
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
6 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index f9b4168..14d630e 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -15,6 +15,9 @@ get_status_led() {
ar725w)
status_led="ar725w:green:power"
;;
+ awapn2403)
+ status_led="asiarf:green:wps"
+ ;;
argus-atp52b)
status_led="argus-atp52b:green:run"
;;
diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index b57bfd8..904afd1 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -64,6 +64,7 @@ case "$FIRMWARE" in
all5003 | \
argus-atp52b | \
awm002-evb | \
+ awapn2403 | \
bc2 | \
br6425 | \
br-6475nd | \
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index 23c2451..c5e380c 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -35,6 +35,9 @@ case $board in
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
set_wifi_led "rt2800pci-phy0::radio"
;;
+ awapn2403)
+ set_wifi_led "rt2800soc-phy0::radio"
+ ;;
ar725w)
set_wifi_led "rt2800soc-phy0::radio"
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index 02a4da9..0c3daff 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -64,6 +64,13 @@ ramips_setup_interfaces()
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
;;
+ awapn2403)
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "0 6t"
+ ucidef_add_switch_vlan "switch0" "2" "1 6t"
+ ;;
+
br-6475nd)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index f9732f8..5d897fc 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -55,6 +55,9 @@ ramips_board_detect() {
*"AsiaRF AWM002 EVB")
name="awm002-evb"
;;
+ *"AsiaRF AWAPN2403")
+ name="awapn2403"
+ ;;
*"BR6524N")
name="br6524n"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 190de9f..a39c433 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -26,6 +26,7 @@ platform_check_image() {
ar725w | \
asl26555 | \
awm002-evb | \
+ awapn2403 | \
bc2 | \
broadway | \
carambola | \