linux-brain/drivers/nvmem
Daniel Schultz fe1da3b785 nvmem: imx-ocotp: Fix wrong register size
[ Upstream commit 14ba972842 ]

All i.MX6 SoCs have an OCOTP Controller with 4kbit fuses. The i.MX6SL is
an exception and has only 2kbit fuses.

In the TRM for the i.MX6DQ (IMX6QDRM - Rev 2, 06/2014) the fuses size is
described in chapter 46.1.1 with:
"32-bit word restricted program and read to 4Kbits of eFuse OTP(512x8)."

In the TRM for the i.MX6SL (IMX6SLRM - Rev 2, 06/2015) the fuses size is
described in chapter 34.1.1 with:
"32-bit word restricted program and read to 2 kbit of eFuse OTP(128x8)."

Since the Freescale Linux kernel OCOTP driver works with a fuses size of
2 kbit for the i.MX6SL, it looks like the TRM is wrong and the formula
to calculate the correct fuses size has to be 256x8.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-06 19:19:46 -07:00
..
Kconfig nvmem: Adding bindings for rockchip-efuse 2015-10-04 12:08:14 +01:00
Makefile nvmem: Adding bindings for rockchip-efuse 2015-10-04 12:08:14 +01:00
core.c nvmem: core: Fix memory leak in nvmem_cell_write 2015-10-04 12:09:43 +01:00
imx-ocotp.c nvmem: imx-ocotp: Fix wrong register size 2017-08-06 19:19:46 -07:00
mxs-ocotp.c nvmem: mxs-ocotp: fix buffer overflow in read 2016-05-11 11:21:21 +02:00
qfprom.c nvmem: qfprom: Add Qualcomm QFPROM support. 2015-08-05 13:44:23 -07:00
rockchip-efuse.c nvmem: rockchip_efuse_regmap_config can be static 2015-10-04 12:08:14 +01:00
sunxi_sid.c nvmem: sunxi: Check for memory allocation failure 2015-10-04 12:09:43 +01:00
vf610-ocotp.c nvmem: Add Vybrid OCOTP support 2015-10-04 12:06:13 +01:00