Merge pull request #3 from ZqinKing/main
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled

base-files: Add new functions for ath11k caldata
This commit is contained in:
breeze303 2024-10-20 08:10:47 +08:00 committed by GitHub
commit e9cc56fb70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,19 @@
. /lib/functions/caldata.sh
preinit_fix_eeprom() {
case $(board_name) in
jdcloud,ax6600|\
jdcloud,ax1800-pro|\
redmi,ax5-jdcloud)
mmc_part=$(find_mmc_part 0:ART)
FIRMWARE=""ath11k/IPQ6018/hw1.0/cal-ahb-c000000.wifi.bin""
[ ! -e /lib/firmware/"$FIRMWARE" ] && \
export FIRMWARE="$FIRMWARE" && \
caldata_extract_mmc "0:ART" 0x1000 0x10000
;;
*)
;;
esac
}
boot_hook_add preinit_main preinit_fix_eeprom