aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-02-02 09:01:07 +0000
committerJohn Crispin <john@openwrt.org>2015-02-02 09:01:07 +0000
commit70db4e46398c8c82774e6af7f7158f3df22d6afe (patch)
tree01573d0a1f64ead8608d5bf8b52fae51f2f16365 /target/linux/ramips/base-files
parentbc906ca59e9f437f5cb9543714d1b979ea82838e (diff)
downloadupstream-70db4e46398c8c82774e6af7f7158f3df22d6afe.tar.gz
upstream-70db4e46398c8c82774e6af7f7158f3df22d6afe.tar.bz2
upstream-70db4e46398c8c82774e6af7f7158f3df22d6afe.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> SVN-Revision: 44238
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rwxr-xr-xtarget/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, 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)