MT_EE_WIFI_CONF field can be used to detect if the chipset is MT7615D.
Thus, add support to automatically register ext_phy if DBDC is detected.
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
        case MT_EE_2GHZ:
                dev->mt76.cap.has_2ghz = true;
                break;
+       case MT_EE_DBDC:
+               dev->dbdc_support = true;
+               /* fall through */
        default:
                dev->mt76.cap.has_2ghz = true;
                dev->mt76.cap.has_5ghz = true;
 
 
        bool fw_debug;
        bool flash_eeprom;
+       bool dbdc_support;
 
        spinlock_t token_lock;
        struct idr token;
 
        mt7615_phy_init(dev);
        mt7615_mcu_del_wtbl_all(dev);
        mt7615_check_offload_capability(dev);
+
+       if (dev->dbdc_support)
+               mt7615_register_ext_phy(dev);
 }
 
 static int mt7615_init_hardware(struct mt7615_dev *dev)