From ece0d44fe5e71fc321e5218d5b89fe933685d3bb Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 26 Jul 2014 20:36:22 +0000 Subject: ramips: add support for Kingston MLW221 This patch adds support for the Kingston Mobilelite Wireless (MLW-221) http://wiki.openwrt.org/toh/kingston/mlw221 Signed-off-by: L. D. Pinney git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41841 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/base-files/etc/diag.sh | 3 +++ target/linux/ramips/base-files/etc/uci-defaults/01_leds | 3 +++ target/linux/ramips/base-files/etc/uci-defaults/02_network | 4 ++++ target/linux/ramips/base-files/lib/ramips.sh | 3 +++ target/linux/ramips/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 14 insertions(+) (limited to 'target/linux/ramips/base-files') diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 908547e50e..088760652a 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -73,6 +73,9 @@ get_status_led() { m4) status_led="m4:blue:status" ;; + mlw221) + status_led="kingston:green:status" + ;; mofi3500-3gn) status_led="mofi3500-3gn:green:status" ;; 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 19ec4f5904..359281efa9 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -113,6 +113,9 @@ case $board in hw550-3g) set_usb_led "hw550-3g:green:usb" ;; + mlw221) + set_wifi_led "kingston:blue:wifi" + ;; mofi3500-3gn) set_usb_led "mofi3500-3gn:green:usb" ;; 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 f65388f613..40c60fee5c 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -51,6 +51,10 @@ ramips_setup_interfaces() ;; 3g-6200nl | \ + mlw221) + ucidef_set_interface_lan "eth0.2" + ;; + wl-330n | \ wmr300) ucidef_set_interface_lan "eth0.1" diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index ff3c2a5e5d..f7e04b7391 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -160,6 +160,9 @@ ramips_board_detect() { *"HAME MPR-A2") name="mpr-a2" ;; + *"Kingston MLW221") + name="mlw221" + ;; *"Planex MZK-750DHP") name="mzk-750dhp" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 1ab3ab510f..4a70691084 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -55,6 +55,7 @@ platform_check_image() { ip2202 | \ m3 | \ m4 | \ + mlw221 | \ mofi3500-3gn | \ mpr-a1 | \ mpr-a2 | \ -- cgit v1.2.3