summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorXuefu Lin <xuefulin@gmail.com>2016-09-30 19:41:12 +0800
committerJohn Crispin <john@phrozen.org>2016-10-04 11:50:46 +0200
commitdce5c4f5c8629af13bdb7cb5803a349cb8305d70 (patch)
tree91a59fce0b0af0641a2c1c9f3c11e60f3379c655 /target/linux/ramips/base-files
parenta51a11931bbca510d035432f6b496b3678db05b1 (diff)
downloadmtk-20170518-dce5c4f5c8629af13bdb7cb5803a349cb8305d70.zip
mtk-20170518-dce5c4f5c8629af13bdb7cb5803a349cb8305d70.tar.gz
mtk-20170518-dce5c4f5c8629af13bdb7cb5803a349cb8305d70.tar.bz2
ramips: Add support for Phicomm K2 PSG1218
- CPU: MT7620A 580MHz - Flash: 8MB - RAM: 64MB - External PA+LNA on both WLAN2.4 and WLAN5 - 4x LAN ethernet and 1x WAN ethernet Signed-off-by: Xuefu Lin <xuefulin@gmail.com>
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
-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, 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 8bc3d0c..5211938 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -255,6 +255,9 @@ pbr-m1)
psg1208)
set_wifi_led "$board:white:wlan2g"
;;
+psg1218)
+ ucidef_set_led_default "power" "power" "$board:red:status" "1"
+ ;;
px-4885)
set_wifi_led "$board:orange:wifi"
set_usb_led "$board:blue:storage"
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 c8b57ca..5ad9a13 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -84,6 +84,7 @@ ramips_setup_interfaces()
oy-0001|\
pbr-m1|\
psg1208|\
+ psg1218|\
sap-g3200u3|\
sk-wb8|\
wf-2881|\
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 7870ce2..98afa05 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -93,6 +93,9 @@ get_status_led() {
psg1208)
status_led="$board:white:wps"
;;
+ psg1218)
+ status_led="$board:blue:status"
+ ;;
cy-swr1100|\
w502u)
status_led="$board:blue:wps"
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index bb379f7..9c6c3b1 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -349,6 +349,9 @@ ramips_board_detect() {
*"PSG1208")
name="psg1208"
;;
+ *"PSG1218")
+ name="psg1218"
+ ;;
*"PSR-680W"*)
name="psr-680w"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 0ef2308..e6c7845 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -103,6 +103,7 @@ platform_check_image() {
pbr-d1|\
pbr-m1|\
psg1208|\
+ psg1218|\
psr-680w|\
px-4885|\
re6500|\