]> git.ipfire.org Git - people/ms/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)
committerStefano Babic <sbabic@denx.de>
Tue, 4 Oct 2016 13:41:00 +0000 (15:41 +0200)
commitf8b95731ff5a4918a95357819293fd49d77c2718
treef7cad21293295b943eaa289e5688a49df4ca176d
parentbbd1b07d30548b6829d7bc96a994134fde8e9cb4
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