]> code.ossystems Code Review - bsp/u-boot.git/commit
imx: ocotp: support i.MX6ULL
authorPeng Fan <van.freenix@gmail.com>
Thu, 11 Aug 2016 06:02:41 +0000 (14:02 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 16 Sep 2016 17:25:40 +0000 (14:25 -0300)
commit489f44d92ca2dd5dbd1f459c7fd6371d58004204
treeeccb7a6b110ff3f9e699ad4054655166b08e6e92
parentc8edd8a5a0969bfe1aaeecaf5f88efc10755526d
imx: ocotp: support i.MX6ULL

i.MX6ULL has two 128 bits fuse banks, bank 7 and bank 8,
while other banks use 256 bits. So we have to adjust the
word and bank index when accessing the bank 8.

When in command line `fuse read 8 0 1`, you can image
`fuse read 7 4 1` in the ocotp driver implementation for 6ULL.

When programming, we use word index, so need to fix bank7/8 programming
for i.mx6ull.

For example: fuse prog 8 3 1; The word index is (8 << 3 | 3) --> 67.
But actully it should be (7 << 3 | 7) ---> 63.
So fix it.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
drivers/misc/mxc_ocotp.c