ar71xx: add support for Mikrotik RB750P-PBr2
[openwrt/staging/chunkeey.git] / target / linux / ar71xx / base-files / etc / board.d / 03_gpio_switches
1 #!/bin/sh
2 #
3 # Copyright (C) 2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 board=$(board_name)
11
12 case "$board" in
13 nanostation-m)
14 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
15 ;;
16 nanostation-m-xw)
17 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
18 ;;
19 cpe210|\
20 cpe510|\
21 wbs210|\
22 wbs510)
23 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
24 ;;
25 rb-912uag-2hpnd|\
26 rb-912uag-5hpnd)
27 ucidef_add_gpio_switch "usb_power_switch" "USB Power Switch" "52" "1"
28 ;;
29 rb-750up-r2|\
30 rb-951ui-2nd|\
31 rb-952ui-5ac2nd)
32 ucidef_add_gpio_switch "usb_power_switch" "USB Power Switch" "45" "1"
33 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "14"
34 ;;
35 rb-750p-pbr2)
36 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "14"
37 ;;
38 esac
39
40 board_config_flush
41
42 exit 0