ramips: add support for DLINK DIR-510L
[openwrt/.git] / target / linux / ramips / base-files / etc / board.d / 03_gpio_switches
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4
5 board_config_update
6
7 board=$(board_name)
8
9 case "$board" in
10 dlink,dir-510l)
11         ucidef_add_gpio_switch "usb_enable1" "USB 1A enable" "12" "0"
12         ucidef_add_gpio_switch "usb_enable05" "USB 0.5A enable" "13" "1"
13         ;;
14 mikrotik,rb750gr3)
15         ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "17"
16         ;;
17 ubnt-erx)
18         ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "0"
19         ;;
20 ubnt-erx-sfp)
21         ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "496"
22         ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "497"
23         ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "498"
24         ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "499"
25         ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "500"
26         ;;
27 esac
28
29 board_config_flush
30
31 exit 0