diff options
author | Ye Li <ye.li@nxp.com> | 2019-04-17 09:41:23 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-04-25 19:16:24 +0200 |
commit | b3cf86c86bf00d7d3ee9bc7ecb0819105b641c89 (patch) | |
tree | 0d92e4789d72763d559fbb0223989f721ae76de5 /drivers/misc | |
parent | 112ad600587655d17a95ecf1d9a10358528106ac (diff) | |
download | u-boot-b3cf86c86bf00d7d3ee9bc7ecb0819105b641c89.tar.gz |
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mxc_ocotp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 33ea31135c..1b945e9727 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -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; |