diff options
author | Ye Li <ye.li@nxp.com> | 2018-09-03 00:53:20 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-09-04 01:58:10 -0700 |
commit | 4a8a24ae8b77e394911fd83374ef9c0a89cb9688 (patch) | |
tree | fa2130c56d6674dfc23656166ee540ab01d171c8 | |
parent | 11a44009a6d301df30ecda4209e79906a36a0981 (diff) |
MLK-19433-3 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>
(cherry picked from commit da95f60611e8859eba3e7ccb715fdce4d6376774)
-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 85bd46ac64..ff856a3e38 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -322,6 +322,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; |