misc: ocotp: Update OCOTP driver for iMX8MQ B2
[platform/kernel/u-boot.git] / drivers / misc / mxc_ocotp.c
index 926c62c..b1893a5 100644 (file)
@@ -335,7 +335,7 @@ int fuse_sense(u32 bank, u32 word, u32 *val)
        struct ocotp_regs *regs;
        int ret;
 
-       if (is_imx8mq() && is_soc_rev(CHIP_REV_2_1)) {
+       if (is_imx8mq() && (soc_rev() >= CHIP_REV_2_1)) {
                printf("mxc_ocotp %s(): fuse sense is disabled\n", __func__);
                return -EPERM;
        }