Skip to content
Snippets Groups Projects
Verified Commit 853ea13b authored by minute's avatar minute
Browse files

reform-hw-setup: add loader for qca9377 wifi on imx8mp platforms

parent c5e2e353
No related branches found
No related tags found
1 merge request!68Pocket Reform Release
......@@ -35,6 +35,13 @@ init_pocket_display() {
done
}
init_qca9377_wifi() {
# load out-of-tree Wi-Fi driver
KERNVER=$(uname -v | cut -d ' ' -f 4)
modprobe cfg80211
insmod -f "/opt/reform-qcacld2/qcacld2-${KERNVER}.ko"
}
case "$(cat /proc/device-tree/model)" in
"MNT Reform 2"|"MNT Reform 2 HDMI")
# Workaround for WM8960 sometimes not coming out of reset
......@@ -70,10 +77,17 @@ case "$(cat /proc/device-tree/model)" in
;;
"MNT Pocket Reform with i.MX8MP Module")
init_pocket_display
init_qca9377_wifi
;;
"MNT Pocket Reform with BPI-CM4 Module")
init_pocket_display
init_a311d
;;
"MNT Reform 2 with RCORE RK3588 Module") : ;;
"MNT Reform 2 with i.MX8MPlus Module")
init_wm8960
init_qca9377_wifi
;;
"MNT Reform 2 with RCORE RK3588 Module")
init_wm8960
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment