1
0
Fork 0
remarkable-linux/drivers/nvmem
Daniel Schultz a7526723b7 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 18:59:48 -07:00
..
Kconfig nvmem: amlogic: Add Amlogic Meson EFUSE driver 2016-09-01 14:24:21 -07:00
Makefile nvmem: amlogic: Add Amlogic Meson EFUSE driver 2016-09-01 14:24:21 -07:00
core.c nvmem: core: fix leaks on registration errors 2017-07-21 07:42:22 +02:00
imx-ocotp.c nvmem: imx-ocotp: Fix wrong register size 2017-08-06 18:59:48 -07:00
lpc18xx_eeprom.c nvmem: lpc18xx-eeprom: remove nvmem regmap dependency 2016-05-01 14:01:13 -07:00
meson-efuse.c nvmem: amlogic: Add Amlogic Meson EFUSE driver 2016-09-01 14:24:21 -07:00
mtk-efuse.c nvmem: mtk-efuse: remove nvmem regmap dependency 2016-06-25 07:42:55 -07:00
mxs-ocotp.c nvmem: mxs-ocotp: remove nvmem regmap dependency 2016-06-25 07:42:55 -07:00
qfprom.c nvmem: qfprom: remove nvmem regmap dependency 2016-05-01 14:01:00 -07:00
rockchip-efuse.c nvmem: rockchip-efuse: add rk3399-efuse support 2016-09-02 17:22:51 +02:00
sunxi_sid.c nvmem: sunxi-sid: remove nvmem regmap dependency 2016-05-01 14:01:00 -07:00
vf610-ocotp.c nvmem: vif610-ocotp: remove nvmem regmap dependency 2016-05-01 14:01:00 -07:00