mediatek: add support for JDCloud RE-CP-03
[openwrt/openwrt.git] / target / linux / mediatek / filogic / base-files / etc / hotplug.d / firmware / 11-mt76-caldata
index bc1dcb0008c25e227cf91bf25c96eafbf42732fc..22ab26608f8ab64d22d2c06060fa14e147c56863 100644 (file)
@@ -7,15 +7,30 @@
 board=$(board_name)
 
 case "$FIRMWARE" in
+"mediatek/mt7915_eeprom.bin")
+       case "$board" in
+       smartrg,sdg-8622)
+               caldata_extract_mmc "factory" 0xa0000 0x1000
+               ;;
+       esac
+       ;;
 "mediatek/mt7916_eeprom.bin")
        case "$board" in
-       acer,predator-w6)
-               caldata_extract_mmc "factory" 0xA0000 0x1000
+       acer,predator-w6|\
+       smartrg,sdg-8632)
+               caldata_extract_mmc "factory" 0xa0000 0x1000
                ;;
        esac
        ;;
 "mediatek/mt7981_eeprom_mt7976_dbdc.bin")
        case "$board" in
+       cmcc,rax3000m)
+               case "$(cmdline_get_var root)" in
+               /dev/mmc*)
+                       caldata_extract_mmc "factory" 0x0 0x1000
+                       ;;
+               esac
+               ;;
        ubnt,unifi-6-plus)
                caldata_extract_mmc "factory" 0x0 0x1000
                ;;
@@ -27,6 +42,12 @@ case "$FIRMWARE" in
                ln -sf /tmp/tp_data/MT7986_EEPROM.bin \
                        /lib/firmware/$FIRMWARE
                ;;
+       smartrg,sdg-8612|\
+       smartrg,sdg-8614|\
+       smartrg,sdg-8622|\
+       smartrg,sdg-8632)
+               caldata_extract_mmc "factory" 0x0 0x1000
+               ;;
        esac
        ;;
 "mediatek/mt7986_eeprom_mt7976.bin")
@@ -38,6 +59,7 @@ case "$FIRMWARE" in
        ;;
 "mediatek/mt7986_eeprom_mt7976_dbdc.bin")
        case "$board" in
+       asus,rt-ax59u|\
        asus,tuf-ax4200)
                CI_UBIPART="UBI_DEV"
                caldata_extract_ubi "Factory" 0x0 0x1000
@@ -46,7 +68,12 @@ case "$FIRMWARE" in
        ;;
 "mediatek/mt7986_eeprom_mt7976_dual.bin")
        case "$board" in
-       glinet,gl-mt6000)
+       asus,tuf-ax6000)
+               CI_UBIPART="UBI_DEV"
+               caldata_extract_ubi "Factory" 0x0 0x1000
+               ;;
+       glinet,gl-mt6000|\
+       jdcloud,re-cp-03)
                caldata_extract_mmc "factory" 0x0 0x1000
                ;;
        esac