aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bmips
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2023-03-26 14:38:41 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2023-03-28 18:20:34 +0200
commit741780bd938e39a69d757e82d7474ed004dfe9fc (patch)
tree9e9e467312e58b341aa6fdf3965480badea21344 /target/linux/bmips
parent8f27093ce784daad5a9b1c89f51d0a76a8bbb07b (diff)
downloadupstream-741780bd938e39a69d757e82d7474ed004dfe9fc.tar.gz
upstream-741780bd938e39a69d757e82d7474ed004dfe9fc.tar.bz2
upstream-741780bd938e39a69d757e82d7474ed004dfe9fc.zip
bmips: sercomm,h500-s: add Quantenna gpio switch
Sercomm H500-s has a Quantenna SoC for external wifi which can be activated or deactivated through GPIO #20. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bmips')
-rw-r--r--target/linux/bmips/nand/base-files/etc/board.d/03_gpio_switches16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/bmips/nand/base-files/etc/board.d/03_gpio_switches b/target/linux/bmips/nand/base-files/etc/board.d/03_gpio_switches
new file mode 100644
index 0000000000..75ac111b0c
--- /dev/null
+++ b/target/linux/bmips/nand/base-files/etc/board.d/03_gpio_switches
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(board_name)" in
+sercomm,h500-s-lowi |\
+sercomm,h500-s-vfes)
+ ucidef_add_gpio_switch "qtn_power" "Quantenna Module Power" "480" "1"
+ ;;
+esac
+
+board_config_flush
+
+exit 0