ramips: fix support for MX25L25635F flash
[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 mikrotik,rb750gr3)
11         ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "17"
12         ;;
13 ubnt-erx)
14         ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "0"
15         ;;
16 ubnt-erx-sfp)
17         ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "496"
18         ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "497"
19         ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "498"
20         ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "499"
21         ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "500"
22         ;;
23 esac
24
25 board_config_flush
26
27 exit 0