Commit 6ec7af8eedb5ce34979eaaeb2cf2634fe759e697

Authored by Ye Li
1 parent ec1f64b420

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 <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 357cf646bc3b9fc8d3b4f760e030545e83df2cdf)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/misc/mxc_ocotp.c
... ... @@ -334,7 +334,7 @@
334 334 struct ocotp_regs *regs;
335 335 int ret;
336 336  
337   - if (is_imx8mq() && is_soc_rev(CHIP_REV_2_1)) {
  337 + if (is_imx8mq() && (soc_rev() >= CHIP_REV_2_1)) {
338 338 printf("mxc_ocotp %s(): fuse sense is disabled\n", __func__);
339 339 return -EPERM;
340 340 }