diff options
author | John Crispin <blogic@openwrt.org> | 2015-02-02 09:01:07 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-02-02 09:01:07 +0000 |
commit | 6e37a7e6289cbe2d63f3ec009edd688d362dd00f (patch) | |
tree | fc5721d1768d2a744a93632f372cfe86886d873c /target/linux/ramips/base-files | |
parent | 560f9d56375f398ad13c3237de5c41d73ac187cd (diff) | |
download | upstream-6e37a7e6289cbe2d63f3ec009edd688d362dd00f.tar.gz upstream-6e37a7e6289cbe2d63f3ec009edd688d362dd00f.tar.bz2 upstream-6e37a7e6289cbe2d63f3ec009edd688d362dd00f.zip |
ramips: add support for Xiaomi MiWiFi Mini devices
This patch adds support for Xiaomi MiWiFi Mini, a 802.11a/b/g/n/ac dual radio
wireless router based on the MediaTek MT7620a SoC.
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44238 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 11 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 af3dddcc58..cfc782ed07 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -231,6 +231,9 @@ case $board in wt3020) ucidef_set_led_default "power" "power" "nexx:blue:power" "0" ;; + xiaomi-miwifi-mini) + ucidef_set_led_default "power" "power" "xiaomi:red:status" "1" + ;; y1 |\ y1s) ucidef_set_led_default "power" "power" "lenovo:blue:power" "1" 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 7724c3e40a..f298aa47af 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -130,6 +130,7 @@ ramips_setup_interfaces() wsr-600 | \ wsr-1166 | \ wt1520 | \ + xiaomi-miwifi-mini |\ y1) 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 808177bc0d..e9b39970ca 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -210,6 +210,9 @@ get_status_led() { xdxrn502j) status_led="xdxrn502j:green:power" ;; + xiaomi-mini) + status_led="xiaomi:red:status" + ;; f7c027) status_led="belkin:orange:status" ;; diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index f43725ef9d..4527414e6e 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -367,6 +367,9 @@ ramips_board_detect() { *"Wansview NCS601W") name="ncs601w" ;; + *"Xiaomi MiWiFi Mini") + name="xiaomi-miwifi-mini" + ;; *"Sercomm NA930") name="na930" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 0dfdf9de86..356a0856c9 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -110,6 +110,7 @@ platform_check_image() { wt3020 |\ x5 |\ x8 |\ + xiaomi-miwifi-mini |\ y1 |\ y1s |\ zbt-wa05) |