arm: mvebu: a37xx: Add support for reading NB and SB fuse OTP value
authorPali Rohár <pali@kernel.org>
Wed, 23 Feb 2022 13:15:45 +0000 (14:15 +0100)
committerStefan Roese <sr@denx.de>
Thu, 21 Apr 2022 10:31:36 +0000 (12:31 +0200)
commit10154b81def9b66e7ad45d6e295e5ea640d79f1e
tree302375a61a66be6df3c4429a717df9631cdefeae
parenta37b68820c432ff9b0b3dab597d94f7bbfa5d1e2
arm: mvebu: a37xx: Add support for reading NB and SB fuse OTP value

Implement reading NB and SB fuses of Armada 37xx SOC via U-Boot fuse API.

Banks 0-43 are reserved for accessing Security OTP (not implemented yet).
Bank 44 is used for accessing North Bridge OTP (69 bits via words 0-2).
Bank 45 is used for accessing South Bridge OTP (97 bits via words 0-3).

Write support is not implemented yet because it looks like that both North
and South Bridge OTPs are already burned in factory with some data. The
meaning of some bits of North Bridge is documented in WTMI source code.
The meaning of bits in South Bridge is unknown.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/Kconfig
arch/arm/mach-mvebu/Makefile
arch/arm/mach-mvebu/armada3700/Makefile
arch/arm/mach-mvebu/armada3700/efuse.c [new file with mode: 0644]