summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-06-18 18:20:40 +0000
committerJohn Crispin <john@openwrt.org>2015-06-18 18:20:40 +0000
commit640b211b1e9350471f7aef7c64ced5a1ef55476e (patch)
tree42c52db64b4c02f43b6f022e01a6a03601ea2159 /target/linux/ramips/base-files/etc
parentdf1daa469238d71ed0f9e9b2d5224072eab90d29 (diff)
downloadmtk-20170518-640b211b1e9350471f7aef7c64ced5a1ef55476e.zip
mtk-20170518-640b211b1e9350471f7aef7c64ced5a1ef55476e.tar.gz
mtk-20170518-640b211b1e9350471f7aef7c64ced5a1ef55476e.tar.bz2
ramips: add support for PandoraBox PBR-M1
This patch is for PandoraBox PBR-M1 which is based on mt7621, all the features work fine, including rtc, leds, button, usb3.0, etc. Signed-off-by: tymon <banglang.huang@foxmail.com> SVN-Revision: 46041
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh3
3 files changed, 9 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 ad0062a..c63ff47 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -175,6 +175,11 @@ case $board in
set_wifi_led "7links:orange:wifi"
set_usb_led "7links:blue:storage"
;;
+ pbr-m1)
+ ucidef_set_led_netdev "internet" "internet" "pbr-m1:green:internet" "eth0.2"
+ ucidef_set_led_default "power" "power" "pbr-m1:green:power" "1"
+ ucidef_set_led_default "sys" "sys" "pbr-m1:green:sys" "1"
+ ;;
sl-r7205)
set_wifi_led "rt2800pci-phy0::radio"
;;
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 4982566..b3dd1f1 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -129,6 +129,7 @@ ramips_setup_interfaces()
dir-320-b1 | \
dir-615-h1 | \
firewrt | \
+ pbr-m1 | \
hlk-rm04 | \
mt7621 | \
mt7628 | \
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index d6001c5..bfc92e5 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -117,6 +117,9 @@ get_status_led() {
omni-emb-hpm)
status_led="emb:green:status"
;;
+ pbr-m1)
+ status_led="pbr-m1:green:sys"
+ ;;
psr-680w)
status_led="psr-680w:red:wan"
;;