board.d: add support for gpio_switch sections
[openwrt/staging/lynxis/omap.git] / target / linux / ar71xx / base-files / etc / uci-defaults / 01_gpio-switches
1 #!/bin/sh
2 #
3 # Copyright (C) 2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7 . /lib/ar71xx.sh
8
9 board=$(ar71xx_board_name)
10
11 case "$board" in
12 nanostation-m)
13 ucidef_set_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
14 ;;
15 nanostation-m-xw)
16 ucidef_set_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
17 ;;
18 cpe510)
19 ucidef_set_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
20 ;;
21 esac
22
23 ucidef_commit_gpio_switches
24
25 exit 0