From e61fe4e4d762eb3e00c43b6714a229835efc7ea5 Mon Sep 17 00:00:00 2001 From: Allan Nick Pedrana Date: Sun, 29 May 2016 17:26:03 -0500 Subject: ar71xx: add support for OpenEmbed SOM9331 This patch adds the target profile SOM9331 and configures hardware functionality for the 3x Eth Ports & corresponding LED's, the USB Host, the USART to USB bridge and the System LED. Signed-off-by: Allan Nick Pedrana --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 8 ++++++++ target/linux/ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 16 insertions(+) (limited to 'target/linux/ar71xx/base-files') 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 fc2bffe497..6936b8c873 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -426,6 +426,14 @@ smart-300) ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt" ;; +som9331) + ucidef_set_led_netdev "wan" "WAN" "som9331:orange:wan" "eth1" + ucidef_set_led_switch "lan1" "LAN1" "som9331:orange:lan1" "switch0" "0x08" + ucidef_set_led_switch "lan2" "LAN2" "som9331:orange:lan2" "switch0" "0x02" + ucidef_set_led_wlan "wlan" "WLAN" "som9331:red:wlan" "phy0tpt" + ucidef_set_led_usbdev "usb" "USB" "som9331:green:system" "1-1" + ;; + tellstick-znet-lite) ucidef_set_led_netdev "lan_act" "LANACT" "tellstick:green:lan" "eth0" "tx rx" ucidef_set_led_netdev "lan_link" "LANLINK" "tellstick:orange:lan" "eth0" "link" 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 cca9704295..9b5653b9e0 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -452,6 +452,7 @@ oolite |\ qihoo-c301 |\ rb-750 |\ rb-751 |\ +som9331 |\ tew-632brp |\ tew-712br |\ tew-732br |\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index e43657148a..520fef8097 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -278,6 +278,9 @@ get_status_led() { tellstick-znet-lite) status_led="tellstick:white:system" ;; + som9331) + status_led="som9331:green:system" + ;; tew-632brp) status_led="tew-632brp:green:status" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 2777238692..5b81f739f4 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -794,6 +794,9 @@ ar71xx_board_detect() { *"Telldus TellStick ZNet Lite") name="tellstick-znet-lite" ;; + *SOM9331) + name="som9331" + ;; *TEW-632BRP) name="tew-632brp" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index a5ddf11d09..313e2e639b 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -350,6 +350,7 @@ platform_check_image() { onion-omega | \ oolite | \ smart-300 | \ + som9331 | \ tellstick-znet-lite | \ tl-mr10u | \ tl-mr11u | \ -- cgit v1.2.3