# SPDX-License-Identifier: GPL-2.0-or-later

. /lib/functions/system.sh
. /lib/functions/uci-defaults.sh

board_config_update

if [ "$(get_linux_version)" -ge "612000" ]; then
	GPIO_BASE=512
else
	GPIO_BASE=460
fi

case "$(board_name)" in
sercomm,h500-s-lowi |\
sercomm,h500-s-vfes)
	ucidef_add_gpio_switch "qtn_power" "Quantenna Module Power" "$(($GPIO_BASE + 20))" "1"
	;;
esac

board_config_flush

exit 0
