armv8: ls1043a/ls2080a: check SoC by device ID
[oweals/u-boot.git] / drivers / net / fsl-mc / dpio / qbman_private.h
index 73bbae373efe71db16f20ffd941f691dd0690310..873323be0fc352d48abc937d89a371fdf8cc719e 100644 (file)
@@ -175,8 +175,8 @@ void qbman_version(u32 *major, u32 *minor)
         * LS2080A SoC and its personalities has qbman cotroller version 4.0
         * New SoCs like LS2088A, LS1088A has qbman conroller version 4.1
         */
-       svr_dev_id = get_svr() >> 16;
-       if (svr_dev_id == SVR_DEV_LS2080A) {
+       svr_dev_id = get_svr();
+       if (IS_SVR_DEV(svr_dev_id, SVR_DEV(SVR_LS2080A))) {
                *major = 4;
                *minor = 0;
        } else {