nvmem: imx-ocotp: imx8mq is compatible with imx6 not imx7
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 26 Jun 2019 10:27:33 +0000 (11:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 12:26:47 +0000 (20:26 +0800)
commit5a1c17240bf1b8d2b262aaa1a4c26070d43d868f
tree25187ce0a473bbd8db116eeb94847a41549d1cb6
parent4112c8537f07aad84c00841a5a30f4acfbbc8242
nvmem: imx-ocotp: imx8mq is compatible with imx6 not imx7

According to NXP Reference Manuals and uboot/atf sources the OCOTP block
on imx8m behaves more like imx6 than imx7.

- Fuses can be read/written 32bits at a time (no imx7-like banking)
- The OCOTP_HW_OCOTP_TIMING register is like imx6 not imx7

Since nvmem doesn't support uboot-style "sense" and "override" this
issue only affected "write" which is very rarely used.

Fixes: 163c0dbd0cb1 ("nvmem: imx-ocotp: add support for imx8mq")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp.c