MLK-18732 imx8: Add fuse driver for read/write OTP memory
authorYe Li <ye.li@nxp.com>
Wed, 17 May 2017 07:06:15 +0000 (02:06 -0500)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 08:47:53 +0000 (01:47 -0700)
commitd8de224e26eac82193dea10b4d143e0093a7f609
treee54eb26a139f2480f50e958b682ab66fae764b7e
parent62d50d42f23a76e95b09db0f5d6cc4330e44f767
MLK-18732 imx8: Add fuse driver for read/write OTP memory

Implement a fuse driver to access OTP memory. When CONFIG_SMC_FUSE is set,
the driver uses SIP call to ATF to read/write OTP. When CONFIG_SMC_FUSE is
not set, the driver wraps the SCFW API and only provide interfaces
to read the OTP.

Since there is no concept of fuse bank on i.MX8. Need set "bank" parameter to 0
when using the fuse command.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Teo Hall <teo.hall@nxp.com>
arch/arm/include/asm/mach-imx/sys_proto.h
arch/arm/mach-imx/imx8/Kconfig
arch/arm/mach-imx/imx8/Makefile
arch/arm/mach-imx/imx8/fuse.c [new file with mode: 0644]
arch/arm/mach-imx/sip.c