mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
mxc_ocotp: Disable fuse sense for imx8mq B1
On iMX8MQ Rev B1, reading from fuse box is not allowed. The OCOTP_READ_FUSE_DATA register is tied to magic number 0xff0055aa for chip rev. So u-boot has to disable the fuse sense function for it. Signed-off-by: Ye Li <ye.li@nxp.com> Tested-by: Anson Huang <Anson.Huang@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
112ad60058
commit
b3cf86c86b
1 changed files with 5 additions and 0 deletions
|
@ -321,6 +321,11 @@ 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)) {
|
||||
printf("mxc_ocotp %s(): fuse sense is disabled\n", __func__);
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
ret = prepare_read(®s, bank, word, val, __func__);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue