]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
misc: ocotp: Update OCOTP driver for iMX8MQ B2
authorYe Li <ye.li@nxp.com>
Fri, 19 Mar 2021 07:57:17 +0000 (15:57 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 07:18:29 +0000 (09:18 +0200)
i.MX8MQ B2 also has fixed value in OCOTP_READ_FUSE_DATA register,
so it does not support "fuse sense" command like B1.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/misc/mxc_ocotp.c

index 926c62c8a14c05f502fbb55170c8b51709ebece8..b1893a5c7ebaf812dc7945416fd367e741ace82c 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;
        }