improve the LARGE/SMALL_FPGA detection in driver

This commit is contained in:
Xianjun Jiao 2025-02-24 13:29:31 +01:00
parent 77769f9dcb
commit 380eec74e8

View File

@ -2164,11 +2164,13 @@ static int openwifi_dev_probe(struct platform_device *pdev)
priv->fpga_type = SMALL_FPGA;
} else {
// LARGE FPGAs (i.e. ZCU102, Z7035, ZC706)
if(strstr(fpga_model, "ZCU102") != NULL || strstr(fpga_model, "Z7035") != NULL || strstr(fpga_model, "ZC706") != NULL)
if(strstr(fpga_model, "ZCU102") != NULL || strstr(fpga_model, "Z7035") != NULL || strstr(fpga_model, "ZC706") != NULL) {
priv->fpga_type = LARGE_FPGA;
// SMALL FPGA: (i.e. ZED, ZC702, Z7020)
else if(strstr(fpga_model, "ZED") != NULL || strstr(fpga_model, "ZC702") != NULL || strstr(fpga_model, "Z7020") != NULL)
}// else if(strstr(fpga_model, "ZED") != NULL || strstr(fpga_model, "ZC702") != NULL || strstr(fpga_model, "Z7020") != NULL) {
else { // ALL others are SAMLL_FPGA
priv->fpga_type = SMALL_FPGA;
}
}
// //-------------find ad9361-phy driver for lo/channel control---------------