armv8: layerscape: skip OCRAM init for TFABOOT
authorRajesh Bhagat <rajesh.bhagat@nxp.com>
Mon, 5 Nov 2018 18:02:05 +0000 (18:02 +0000)
committerYork Sun <york.sun@nxp.com>
Thu, 6 Dec 2018 22:37:19 +0000 (14:37 -0800)
OCRAM initialization is performed by TFA, Hence
skipped from u-boot.

Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S

index 11b5fb2ec3a77b78fafe342a413cd85a92edd85b..cbc9112eb1733ed06d6de21d90bd4ab3a953a197 100644 (file)
@@ -304,7 +304,8 @@ ENTRY(lowlevel_init)
 100:
 #endif
 
-#if defined(CONFIG_FSL_LSCH2) && !defined(CONFIG_SPL_BUILD)
+#if !defined(CONFIG_TFABOOT) && \
+       (defined(CONFIG_FSL_LSCH2) && !defined(CONFIG_SPL_BUILD))
        bl      fsl_ocram_init
 #endif