MLK-22836 imx8m: soc: Fix secure boot support for i.MX8MM and i.MX8MN targets
authorBreno Lima <breno.lima@nxp.com>
Thu, 24 Oct 2019 01:03:35 +0000 (22:03 -0300)
committerYe Li <ye.li@nxp.com>
Thu, 24 Oct 2019 01:55:55 +0000 (18:55 -0700)
commitd91e719fc830e011b182abb9712ed09b76f1d400
tree7abb5ab87573f50ad5cd677d837c15f863dbcf3b
parent887f338901ed9726a124d8b564d8f115b66fe763
MLK-22836 imx8m: soc: Fix secure boot support for i.MX8MM and i.MX8MN targets

Since commit c98b47f1ff60 ("MLK-22749 imx8mq: Add workaround to fix sticky
bits lock up") it's not possible to build i.MX8MM and i.MX8MN targets with
CONFIG_SECURE_BOOT enabled:

  CC      cmd/version.o
arch/arm/mach-imx/imx8m/soc.c:326:23: error: ‘CONFIG_IMX_UNIQUE_ID’ undeclared \
(first use in this function); did you mean ‘CONFIG_IMX_VIDEO_SKIP’?
   if (!is_uid_matched(CONFIG_IMX_UNIQUE_ID))
                       ^~~~~~~~~~~~~~~~~~~~

The OCOTP sticky bit workaround is only needed for i.MX8MQ devices, other devices
should not build the secure_lockup() function.

Add CONFIG_IMX8MQ to the conditional compilation to avoid such issue.

Fixes: c98b47f1ff60 ("MLK-22749 imx8mq: Add workaround to fix sticky bits lock up")
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit be033bff3c718e8bd7d4ac5ecfe4361892fc6e61)
arch/arm/mach-imx/imx8m/soc.c