MLK-22749 imx8mq: Add workaround to fix sticky bits lock up
authorYe Li <ye.li@nxp.com>
Tue, 27 Aug 2019 06:39:57 +0000 (23:39 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 11 Oct 2019 08:36:07 +0000 (01:36 -0700)
commit443b88f3332e74361adce52294bb31557ca30fa5
treeb9754bc245f4cfbcd38b7dcc3d3eaa1766b31add
parent5f20cc02b0b10525843813e81603e1dc82033e76
MLK-22749 imx8mq: Add workaround to fix sticky bits lock up

On B1 chips with HAB v4.4, the sticky bits are not locked up in
HAB closed mode. We introduce a workaround in SPL to lock up
these bits and clear Manufacturing Protection Private Key for
secure boot.

For field return case, user has to build a SPL with
CONFIG_SECURE_STICKY_BITS_LOCKUP=n and set CONFIG_IMX_UNIQUE_ID to
part's unique id. When the UID check is passed, sticky bits are not
lockup and users can burn field return fuse. Otherwise the boot will
stop.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit c98b47f1ff60e1f99807e24fd76053ad880f803e)
arch/arm/mach-imx/imx8m/Kconfig
arch/arm/mach-imx/imx8m/soc.c