tmp_suning_uos_patched/drivers/nvmem
Daniel Schultz 14ba972842 nvmem: imx-ocotp: Fix wrong register size
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>
2017-01-04 18:22:47 +01:00
..
bcm-ocotp.c nvmem: Add the Broadcom OTP controller driver 2016-11-10 15:34:56 +01:00
core.c remove lots of IS_ERR_VALUE abuses 2016-05-27 15:26:11 -07:00
imx-ocotp.c nvmem: imx-ocotp: Fix wrong register size 2017-01-04 18:22:47 +01:00
Kconfig nvmem: Add the Broadcom OTP controller driver 2016-11-10 15:34:56 +01:00
lpc18xx_eeprom.c nvmem: lpc18xx-eeprom: remove nvmem regmap dependency 2016-05-01 14:01:13 -07:00
lpc18xx_otp.c nvmem: add NXP LPC18xx OTP driver 2016-11-10 15:34:55 +01:00
Makefile nvmem: Add the Broadcom OTP controller driver 2016-11-10 15:34:56 +01: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: Allow single byte accesses for read/write 2017-01-04 18:22:47 +01: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