mediatek: add support for Acer Predator W6
[openwrt/openwrt.git] / target / linux / mediatek / filogic / base-files / etc / hotplug.d / firmware / 11-mt76-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 "mediatek/mt7916_eeprom.bin")
11 case "$board" in
12 acer,predator-w6)
13 caldata_extract_mmc "factory" 0xA0000 0x1000
14 ;;
15 esac
16 ;;
17 "mediatek/mt7986_eeprom_mt7976.bin")
18 case "$board" in
19 acer,predator-w6)
20 caldata_extract_mmc "factory" 0x0 0x1000
21 ;;
22 esac
23 ;;
24 "mediatek/mt7986_eeprom_mt7976_dbdc.bin")
25 case "$board" in
26 asus,tuf-ax4200)
27 CI_UBIPART="UBI_DEV"
28 caldata_extract_ubi "Factory" 0x0 0x1000
29 ;;
30 esac
31 ;;
32 *)
33 exit 1
34 ;;
35 esac