c255707f916c324ec870bfc0117d77e7ef5cb161
[openwrt/staging/rmilecki.git] / target / linux / ipq40xx / 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 cellc,rtl30vw)
11 ucidef_add_gpio_switch "w_disable" "W_DISABLE mPCIE pin" "398" "1"
12 ucidef_add_gpio_switch "pmd_resin_n" "PMD_RESIN_N pin" "399" "1"
13 ucidef_add_gpio_switch "mcpie_vcc" "LTE power" "400" "0"
14 ucidef_add_gpio_switch "usb_vcc" "USB power" "401" "0"
15 ;;
16 cilab,meshpoint-one)
17 ucidef_add_gpio_switch "poe_passtrough" "POE passtrough enable" "413" "1"
18 ;;
19 compex,wpj428)
20 ucidef_add_gpio_switch "sim_card_select" "SIM card select" "3" "0"
21 ;;
22 esac
23
24 board_config_flush
25
26 exit 0