From 6ec7af8eedb5ce34979eaaeb2cf2634fe759e697 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Wed, 3 Feb 2021 10:23:36 -0800 Subject: [PATCH] MLK-25291-2 misc: ocotp: Update OCOTP driver for iMX8MQ B2 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 Reviewed-by: Peng Fan (cherry picked from commit 357cf646bc3b9fc8d3b4f760e030545e83df2cdf) --- drivers/misc/mxc_ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 80cd8dc..1d8f08d 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -334,7 +334,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; } -- 1.9.1