ipq807x: add support for Zbtlink ZBT-Z800AX
[openwrt/openwrt.git] / target / linux / qualcommax / ipq807x / base-files / etc / hotplug.d / firmware / 11-ath11k-caldata
1 #!/bin/sh
2
3 [ -e /lib/firmware/$FIRMWARE ] && exit 0
4
5 . /lib/functions/caldata.sh
6
7 board=$(board_name)
8
9 case "$FIRMWARE" in
10 "ath11k/IPQ8074/hw2.0/cal-ahb-c000000.wifi.bin")
11 case "$board" in
12 arcadyan,aw1000|\
13 buffalo,wxr-5950ax12|\
14 cmcc,rm2-6|\
15 compex,wpq873|\
16 dynalink,dl-wrx36|\
17 edgecore,eap102|\
18 edimax,cax1800|\
19 linksys,mx4200v1|\
20 linksys,mx4200v2|\
21 linksys,mx5300|\
22 netgear,rax120v2|\
23 netgear,wax218|\
24 netgear,wax620|\
25 netgear,wax630|\
26 qnap,301w|\
27 redmi,ax6|\
28 xiaomi,ax3600|\
29 xiaomi,ax9000|\
30 yuncore,ax880|\
31 zbtlink,zbt-z800ax|\
32 zte,mf269|\
33 zyxel,nbg7815)
34 caldata_extract "0:art" 0x1000 0x20000
35 ;;
36 prpl,haze)
37 caldata_extract_mmc "0:ART" 0x1000 0x20000
38 ;;
39 esac
40 ;;
41 "ath11k/QCN9074/hw1.0/cal-pci-0000:01:00.0.bin"|\
42 "ath11k/QCN9074/hw1.0/cal-pci-0001:01:00.0.bin")
43 case "$board" in
44 prpl,haze)
45 caldata_extract_mmc "0:ART" 0x26800 0x20000
46 ;;
47 xiaomi,ax9000)
48 caldata_extract "0:art" 0x26800 0x20000
49 ;;
50 esac
51 ;;
52 *)
53 exit 1
54 ;;
55 esac