ramips: add newline for ASUS RT-ACx5P DTSes
[openwrt/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 head-weblink,hdrm200)
15 ucidef_add_gpio_switch "sim_switch" "SIM slot switch" "0"
16 ucidef_add_gpio_switch "io1" "I/O 1" "1"
17 ucidef_add_gpio_switch "io2" "I/O 2" "2"
18 ucidef_add_gpio_switch "io3" "I/O 3" "11"
19 ucidef_add_gpio_switch "io4" "I/O 4" "14"
20 ucidef_add_gpio_switch "power_mpcie" "mPCIe power" "21" "1"
21 ;;
22 mikrotik,rb750gr3)
23 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "17"
24 ;;
25 telco-electronics,x1)
26 ucidef_add_gpio_switch "modem_reset" "Modem Reset" "16"
27 ;;
28 ubiquiti,edgerouterx)
29 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "0"
30 ;;
31 ubiquiti,edgerouterx-sfp)
32 ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "496"
33 ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "497"
34 ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "498"
35 ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "499"
36 ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "500"
37 ;;
38 zbtlink,zbt-we826-e)
39 ucidef_add_gpio_switch "sim_switch" "SIM slot switch" "13"
40 ucidef_add_gpio_switch "power_mpcie" "mPCIe power" "14" "1"
41 ;;
42 esac
43
44 board_config_flush
45
46 exit 0