]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nvmem: imx-ocotp: Fix wrong register size
authorDaniel Schultz <d.schultz@phytec.de>
Wed, 4 Jan 2017 16:18:10 +0000 (16:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2017 17:22:47 +0000 (18:22 +0100)
commit14ba972842f9e84e6d3264bc0302101b8a792288
treeeffe8a3d8f04572220b22c68524e42f62a2578c0
parent01d0d2c42a14cee8f619d3e9d571ce3469f5ef51
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>
drivers/nvmem/imx-ocotp.c