ipq40xx: add support for ZTE MF286D
[openwrt/staging/ldir.git] / target / linux / ipq40xx / base-files / etc / board.d / 03_gpio_switches
1
2 . /lib/functions/uci-defaults.sh
3
4 board_config_update
5
6 board=$(board_name)
7
8 case "$board" in
9 cellc,rtl30vw)
10 ucidef_add_gpio_switch "w_disable" "W_DISABLE mPCIE pin" "398" "1"
11 ucidef_add_gpio_switch "pmd_resin_n" "PMD_RESIN_N pin" "399" "1"
12 ucidef_add_gpio_switch "mcpie_vcc" "LTE power" "400" "0"
13 ucidef_add_gpio_switch "usb_vcc" "USB power" "401" "0"
14 ;;
15 cilab,meshpoint-one)
16 ucidef_add_gpio_switch "poe_passtrough" "POE passtrough enable" "413" "1"
17 ;;
18 compex,wpj428)
19 ucidef_add_gpio_switch "sim_card_select" "SIM card select" "3" "0"
20 ;;
21 mikrotik,cap-ac)
22 ucidef_add_gpio_switch "poe_passtrough" "POE passtrough enable" "414" "0"
23 ;;
24 mikrotik,hap-ac3)
25 ucidef_add_gpio_switch "poe_passtrough" "PoE Passthrough" "452" "0"
26 ;;
27 zte,mf286d)
28 ucidef_add_gpio_switch "power_btn_block" "Power button blocker" "421" "0"
29 ;;
30 esac
31
32 board_config_flush
33
34 exit 0