mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
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> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
84a351c489
commit
9c80e53575
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user