nvmem: ocotp: Add support for second mac address fuses on imx6ul
The i.MX 6UL/ULL has fuses for two MAC addresses. Both MAC addresses
share the fuse address 0x23.

		-----------------------------
	0x22	| MAC0 | MAC0 | MAC0 | MAC0 |
		-----------------------------
	0x23	| MAC0 | MAC0 | MAC1 | MAC1 |
		-----------------------------
	0x24	| MAC1 | MAC1 | MAC1 | MAC1 |
		-----------------------------

So to read the second MAC address the first two bytes of 0x23 need to be
skipped.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8fc6022 commit 0ef04e7b0a92ba4ee237c7868f62775fb89e7390
@Christian Hemp Christian Hemp authored on 4 Dec 2018
Sascha Hauer committed on 5 Dec 2018
Showing 1 changed file
View
drivers/nvmem/ocotp.c