Move UWE5622 from kernel patches to misc (#4723)

Todo: Compare and unify with the driver that floats in Rockchip patches
This commit is contained in:
Igor Pečovnik
2023-01-22 08:40:12 +01:00
committed by GitHub
parent fc70c73608
commit 6d38906c8d
10 changed files with 10635 additions and 211856 deletions

View File

@@ -515,10 +515,28 @@ driver_rtl8822BS()
}
driver_uwe5622_allwinner()
{
# Unisoc uwe5622 wireless Support
if linux-version compare "${version}" ge 4.4 && linux-version compare "${version}" le 6.1 && [[ "$LINUXFAMILY" == sunxi* ]]; then
display_alert "Adding" "Drivers for Unisoc uwe5622 found on some Allwinner and Rockchip boards" "info"
process_patch_file "${SRC}/patch/misc/wireless-driver-for-uwe5622-allwinner.patch" "applying"
process_patch_file "${SRC}/patch/misc/wireless-driver-for-uwe5622-allwinner-bugfix.patch" "applying"
# Add to section Makefile
echo "obj-\$(CONFIG_SPARD_WLAN_SUPPORT) += uwe5622/" >> "$kerneldir/drivers/net/wireless/Makefile"
if linux-version compare "${version}" lt 6.1; then
process_patch_file "${SRC}/patch/misc/wireless-driver-for-uwe5622-allwinner-bt-fix.patch" "applying"
fi
fi
}
patch_drivers_network()
{
display_alert "Patching network related drivers"
driver_rtl8152_rtl8153
driver_rtl8189ES
driver_rtl8189FS
@@ -533,6 +551,7 @@ patch_drivers_network()
driver_rtl8723DS
driver_rtl8723DU
driver_rtl8822BS
driver_uwe5622_allwinner
display_alert "Network related drivers patched" "" "info"
}