[source] ar71xx: add user-space support for the OpenMesh OM2Pv4/-HSv4

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 15 00:36:21 PST 2017


blogic pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/b2f3d9b05c5e4f77f5ac76a3f9611f95ed0c359b

commit b2f3d9b05c5e4f77f5ac76a3f9611f95ed0c359b
Author: Sven Eckelmann <sven.eckelmann at open-mesh.com>
AuthorDate: Thu Jun 2 11:25:00 2016 +0200

    ar71xx: add user-space support for the OpenMesh OM2Pv4/-HSv4
    
    Signed-off-by: Sven Eckelmann <sven.eckelmann at open-mesh.com>
---
 target/linux/ar71xx/base-files/etc/board.d/01_leds    | 2 ++
 target/linux/ar71xx/base-files/etc/board.d/02_network | 2 ++
 target/linux/ar71xx/base-files/etc/diag.sh            | 2 ++
 target/linux/ar71xx/base-files/lib/ar71xx.sh          | 6 ++++++
 4 files changed, 12 insertions(+)

diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 84cfb1e..5cd2e5c 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -391,9 +391,11 @@ nbg6716)
 	;;
 om2p|\
 om2pv2|\
+om2pv4|\
 om2p-hs|\
 om2p-hsv2|\
 om2p-hsv3|\
+om2p-hsv4|\
 om2p-lc)
 	ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
 	ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 001994c..50ce445 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -126,6 +126,8 @@ ar71xx_setup_interfaces()
 	gl-inet|\
 	gl-mifi|\
 	jwap003|\
+	om2pv4|\
+	om2p-hsv4|\
 	pb42|\
 	pb44|\
 	rb-951ui-2hnd|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 75c6c9a..111dd61 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -238,9 +238,11 @@ get_status_led() {
 		;;
 	om2p|\
 	om2pv2|\
+	om2pv4|\
 	om2p-hs|\
 	om2p-hsv2|\
 	om2p-hsv3|\
+	om2p-hsv4|\
 	om2p-lc)
 		status_led="om2p:blue:power"
 		;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 7f27f45..77016f4 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -736,6 +736,9 @@ ar71xx_board_detect() {
 	*OM2Pv2)
 		name="om2pv2"
 		;;
+	*OM2Pv4)
+		name="om2pv4"
+		;;
 	*"OM2P HS")
 		name="om2p-hs"
 		;;
@@ -745,6 +748,9 @@ ar71xx_board_detect() {
 	*"OM2P HSv3")
 		name="om2p-hsv3"
 		;;
+	*"OM2P HSv4")
+		name="om2p-hsv4"
+		;;
 	*"OM2P LC")
 		name="om2p-lc"
 		;;



More information about the lede-commits mailing list