misc: fuse: Lock 8ULP ECC-protected fuse when programming
authorYe Li <ye.li@nxp.com>
Tue, 31 Jan 2023 08:42:28 +0000 (16:42 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 29 Mar 2023 18:15:42 +0000 (20:15 +0200)
commit39f700e801f23e4bf7c6f86684f8884935a53cbb
tree6c736ba1f190cba4bc396c439598b953ce3d0756
parentfff11619a1fc7abd8c29fad486ea07287240c158
misc: fuse: Lock 8ULP ECC-protected fuse when programming

The ECC fuse on 8ULP can't be written twice. If any user did it, the
ECC value would be wrong then cause accessing problem to the fuse.
The patch will lock the ECC fuse word to avoid this problem.
For iMX9, the OTP controller automatically prevents an ECC fuse word to
be written twice. So it does not need the setting.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/misc/sentinel/fuse.c