ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.git] / target / linux / ipq806x / base-files / etc / hotplug.d / firmware / 11-ath10k-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 "ath10k/cal-pci-0000:01:00.0.bin")
11 case "$board" in
12 meraki,mr52)
13 CI_UBIPART=art
14 caldata_extract_ubi "ART" 0x1000 0x844
15 ;;
16 esac
17 ;;
18 "ath10k/pre-cal-pci-0000:01:00.0.bin")
19 case $board in
20 asrock,g10)
21 caldata_extract "0:art" 0x1000 0x2f20
22 ;;
23 linksys,ea7500-v1 |\
24 linksys,ea8500)
25 caldata_extract "art" 0x1000 0x2f20
26 ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) 1)
27 ;;
28 meraki,mr42)
29 CI_UBIPART=art
30 caldata_extract_ubi "ART" 0x1000 0x2f20
31 ;;
32 zyxel,nbg6817)
33 caldata_extract "0:art" 0x1000 0x2f20
34 ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii 0:appsblenv ethaddr) 1)
35 ;;
36 esac
37 ;;
38 "ath10k/pre-cal-pci-0001:01:00.0.bin")
39 case $board in
40 asrock,g10)
41 caldata_extract "0:art" 0x5000 0x2f20
42 ;;
43 edgecore,ecw5410)
44 caldata_extract "0:art" 0x1000 0x2f20
45 ;;
46 linksys,ea7500-v1 |\
47 linksys,ea8500)
48 caldata_extract "art" 0x5000 0x2f20
49 ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) 2)
50 ;;
51 meraki,mr42 |\
52 meraki,mr52)
53 CI_UBIPART=art
54 caldata_extract_ubi "ART" 0x5000 0x2f20
55 ;;
56 zyxel,nbg6817)
57 caldata_extract "0:art" 0x5000 0x2f20
58 ath10k_patch_mac $(mtd_get_mac_ascii 0:appsblenv ethaddr)
59 ;;
60 esac
61 ;;
62 "ath10k/cal-pci-0002:01:00.0.bin")
63 case "$board" in
64 meraki,mr42)
65 CI_UBIPART=art
66 caldata_extract_ubi "ART" 0x9000 0x844
67 ;;
68 esac
69 ;;
70 "ath10k/pre-cal-pci-0002:01:00.0.bin")
71 case $board in
72 edgecore,ecw5410)
73 caldata_extract "0:art" 0x5000 0x2f20
74 ;;
75 meraki,mr52)
76 CI_UBIPART=art
77 caldata_extract_ubi "ART" 0x9000 0x2f20
78 ;;
79 esac
80 ;;
81 *)
82 exit 1
83 ;;
84 esac