filogic: add support for GL.iNet GL-MT6000
[openwrt/staging/dangole.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/mt7981_eeprom_mt7976_dbdc.bin")
18 case "$board" in
19 ubnt,unifi-6-plus)
20 caldata_extract_mmc "factory" 0x0 0x1000
21 ;;
22 esac
23 ;;
24 "mediatek/mt7986_eeprom_mt7976.bin")
25 case "$board" in
26 acer,predator-w6)
27 caldata_extract_mmc "factory" 0x0 0x1000
28 ;;
29 esac
30 ;;
31 "mediatek/mt7986_eeprom_mt7976_dbdc.bin")
32 case "$board" in
33 asus,tuf-ax4200)
34 CI_UBIPART="UBI_DEV"
35 caldata_extract_ubi "Factory" 0x0 0x1000
36 ;;
37 esac
38 ;;
39 "mediatek/mt7986_eeprom_mt7976_dual.bin")
40 case "$board" in
41 glinet,gl-mt6000)
42 caldata_extract_mmc "factory" 0x0 0x1000
43 ;;
44 esac
45 ;;
46 *)
47 exit 1
48 ;;
49 esac