aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/base-files
diff options
context:
space:
mode:
authorChukun Pan <amadeus@jmu.edu.cn>2021-06-07 23:35:15 +0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-08-24 20:26:00 +0200
commitfcc075e12f6f4718ccac6b5eb68cb8346064ee43 (patch)
treebe8ccfddf53ace44d582ecdc91e880010e864901 /target/linux/ipq806x/base-files
parent80e70be0ab8461f2856ababa4b74fff9c9a331ed (diff)
downloadupstream-fcc075e12f6f4718ccac6b5eb68cb8346064ee43.tar.gz
upstream-fcc075e12f6f4718ccac6b5eb68cb8346064ee43.tar.bz2
upstream-fcc075e12f6f4718ccac6b5eb68cb8346064ee43.zip
ipq806x: Askey RT4230W REV6: fix caldata script
The partition name in the device dts is '0:ART'. Be independent to prevent this part from becoming incorrect once the kernel v5.4 gone. Fixes: da8428d277cd ("ipq806x: add support for Askey RT4230W REV6") Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Diffstat (limited to 'target/linux/ipq806x/base-files')
-rw-r--r--target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata8
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index d2bdf034b7..8cea017ea4 100644
--- a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -9,7 +9,9 @@ board=$(board_name)
case "$FIRMWARE" in
"ath10k/pre-cal-pci-0000:01:00.0.bin")
case $board in
- askey,rt4230w-rev6 |\
+ askey,rt4230w-rev6)
+ caldata_extract "0:ART" 0x1000 0x2f20
+ ;;
asrock,g10)
if [ -b "$(find_mtd_part 0:art)" ]; then
caldata_extract "0:art" 0x1000 0x2f20
@@ -69,7 +71,9 @@ case "$FIRMWARE" in
;;
"ath10k/pre-cal-pci-0001:01:00.0.bin")
case $board in
- askey,rt4230w-rev6 |\
+ askey,rt4230w-rev6)
+ caldata_extract "0:ART" 0x5000 0x2f20
+ ;;
asrock,g10)
if [ -b "$(find_mtd_part 0:art)" ]; then
caldata_extract "0:art" 0x5000 0x2f20