diff options
author | Thibaut VARENE <hacks@slashdirt.org> | 2017-02-09 22:50:08 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-15 11:28:58 +0100 |
commit | 19f42663d294cfd00770e7c6a9048772e074789d (patch) | |
tree | 996586ec5a7a6ec536c881eef2e59deff0049ad7 /target/linux/ar71xx/base-files | |
parent | 8cbb2ac6332ba3be707ea6e4129c22b9320b72c1 (diff) | |
download | upstream-19f42663d294cfd00770e7c6a9048772e074789d.tar.gz upstream-19f42663d294cfd00770e7c6a9048772e074789d.tar.bz2 upstream-19f42663d294cfd00770e7c6a9048772e074789d.zip |
ar71xx: add support for RB750UPr2
This patch adds support for the MikroTik RouterBOARD hEX PoE lite
https://routerboard.com/RB750UPr2
Specifications:
- SoC: Qualcomm QCA9531 (650MHz)
- RAM: 64MB
- Storage: 16MB NOR SPI flash
- Ethernet: 5x100M (1 PoE in, 1 PoE out)
- USB: Type A
This ethernet router is based on the same platform as the wireless router hAP.
Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/ar71xx/base-files')
6 files changed, 17 insertions, 0 deletions
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 403715c002..c2129ea5f6 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -222,6 +222,14 @@ rb-750) ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04" ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02" ;; +rb-750up-r2) + ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000" + ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0" + ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10" + ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08" + ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04" + ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02" + ;; rb-941-2nd) ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000" ;; 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 721c01c6a4..4f7ddacaca 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -136,6 +136,7 @@ ar71xx_setup_interfaces() om2p-hsv4|\ pb42|\ pb44|\ + rb-750up-r2|\ rb-951ui-2hnd|\ rb-951ui-2nd|\ routerstation|\ diff --git a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches index e76c9be68a..4bb319c937 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches @@ -27,6 +27,7 @@ rb-912uag-2hpnd|\ rb-912uag-5hpnd) ucidef_add_gpio_switch "usb_power_switch" "USB Power Switch" "52" "1" ;; +rb-750up-r2|\ rb-951ui-2nd) ucidef_add_gpio_switch "usb_power_switch" "USB Power Switch" "45" "1" ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "14" diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 5f52389c8b..3a75e1080c 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -293,6 +293,7 @@ get_status_led() { rb-750) status_led="rb750:green:act" ;; + rb-750up-r2|\ rb-911g-2hpnd|\ rb-911g-5hpacd|\ rb-911g-5hpnd|\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index a79839864c..f4e54415ae 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -838,6 +838,9 @@ ar71xx_board_detect() { *"RouterBOARD 750GL") name="rb-750gl" ;; + *"RouterBOARD 750UP r2") + name="rb-750up-r2" + ;; *"RouterBOARD 751") name="rb-751" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index b18e87eec7..1105254483 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -343,6 +343,7 @@ platform_check_image() { ls-sr71|\ pb42|\ pb44|\ + rb-750up-r2|\ rb-941-2nd|\ rb-951ui-2nd|\ rb-mapl-2nd|\ @@ -617,6 +618,7 @@ platform_pre_upgrade() { local board=$(ar71xx_board_name) case "$board" in + rb-750up-r2|\ rb-941-2nd|\ rb-951ui-2nd|\ rb-mapl-2nd) @@ -655,6 +657,7 @@ platform_do_upgrade() { local board=$(ar71xx_board_name) case "$board" in + rb-750up-r2|\ rb-941-2nd|\ rb-951ui-2nd|\ rb-mapl-2nd) |