ath79: GL-AR750S: provide NAND support; increase kernel to 4 MB
[openwrt/openwrt.git] / target / linux / ath79 / nand / 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:00:00.0.bin")
11 case $board in
12 glinet,gl-ar750s-nor|\
13 glinet,gl-ar750s-nor-nand)
14 caldata_extract "art" 0x5000 0x844
15 ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) +1)
16 ;;
17 zyxel,nbg6716)
18 caldata_extract "art" 0x5000 0x844
19 ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
20 ;;
21 esac
22 ;;
23 *)
24 exit 1
25 ;;
26 esac