layerscape: add Traverse LS1043-S support
[openwrt/openwrt.git] / target / linux / layerscape / base-files / etc / board.d / 03_gpio_switches
1 #!/bin/sh
2 #
3 # Copyright (C) 2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 board=$(board_name)
11
12 case "$board" in
13 traverse,ls1043v)
14 ucidef_add_gpio_switch "lte_reset" "LTE Reset" "377"
15 ucidef_add_gpio_switch "lte_disable" "LTE Airplane mode" "378"
16 ;;
17 traverse,ls1043s)
18 ucidef_add_gpio_switch "tensfp_txdisable" "SFP+ TX Disable" "378"
19 ucidef_add_gpio_switch "gigsfp_txdisable" "SFP TX Disable" "381"
20 ucidef_add_gpio_switch "lte_reset" "LTE Reset" "502"
21 ucidef_add_gpio_switch "lte_disable" "LTE Airplane Mode" "394"
22 ucidef_add_gpio_switch "lte_power" "LTE Power" "395"
23 ;;
24 esac
25
26 board_config_flush
27
28 exit 0