aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-05-23 15:26:39 +0000
committerJohn Crispin <blogic@openwrt.org>2015-05-23 15:26:39 +0000
commit281749de0b7e667e575aa7c9e9b2e63286f51611 (patch)
tree05f268c085742ad9fb21ee2da29c6ba004f88308 /target/linux/ramips/base-files
parent951b58723aae50a2f7f0c09b8f65d813a9134f53 (diff)
downloadmaster-187ad058-281749de0b7e667e575aa7c9e9b2e63286f51611.tar.gz
master-187ad058-281749de0b7e667e575aa7c9e9b2e63286f51611.tar.bz2
master-187ad058-281749de0b7e667e575aa7c9e9b2e63286f51611.zip
ramips: add support for Comfast CF-WR800N
This patch adds support for Comfast CF-WR800N, a wall-plug wireless router based on the MT7620N SoC with one Ethernet port and a 802.11n 2.4 GHz radio. Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45722 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network6
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 56ba3b73ce..80623f4a8d 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -73,6 +73,10 @@ case $board in
br6524n)
set_wifi_led "edimax:blue:wlan"
;;
+ cf-wr800n)
+ ucidef_set_led_netdev "lan" "lan" "comfast:white:ethernet" eth0.1
+ set_wifi_led "comfast:white:wifi"
+ ;;
cy-swr1100)
ucidef_set_led_default "wps" "WPS" "samsung:blue:wps" "0"
set_usb_led "samsung:blue:usb"
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 24e1ba8502..c8ef69f2c0 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -108,6 +108,12 @@ ramips_setup_interfaces()
ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
;;
+ cf-wr800n)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "4 6t"
+ ;;
+
cy-swr1100)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 5301593f65..caede7bcc8 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -36,6 +36,9 @@ get_status_led() {
br6425 | br-6475nd)
status_led="edimax:green:power"
;;
+ cf-wr800n)
+ status_led="comfast:white:wps"
+ ;;
cy-swr1100)
status_led="samsung:blue:wps"
;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 616f4a1a26..5769d26c2c 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -91,6 +91,9 @@ ramips_board_detect() {
*"Buffalo WSR-1166DHP")
name="wsr-1166"
;;
+ *"Comfast CF-WR800N")
+ name="cf-wr800n"
+ ;;
*"Firefly FireWRT")
name="firewrt"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 17b456ba19..4ecf3314dc 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -33,6 +33,7 @@ platform_check_image() {
bc2 | \
broadway | \
carambola | \
+ cf-wr800n | \
d105 | \
dap-1350 | \
dcs-930 | \