diff mbox series

[U-Boot] armv8: ls1046ardb: Enable IFC for SPL build

Message ID 1528501047-15584-1-git-send-email-york.sun@nxp.com
State Accepted
Commit 80bec96ecf3b99fa96c7e658af208eeaf3fe593f
Delegated to: York Sun
Headers show
Series [U-Boot] armv8: ls1046ardb: Enable IFC for SPL build | expand

Commit Message

York Sun June 8, 2018, 11:37 p.m. UTC
Commit a52ff334c5b1 ("armv8: ls1046ardb: SPL size reduction") reduced
image size for SPL. IFC was disabled. If PPA is loaded in SPL, MMU is
enabled as a result. Removing IFC skips IFC region in the MMU table,
causing later failure in RAM version U-boot when accessing CPLD
through IFC. Only disable IFC if PPA is not enabled for SPL.

Signed-off-by: York Sun <york.sun@nxp.com>
---

 include/configs/ls1046a_common.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

York Sun July 27, 2018, 3:38 p.m. UTC | #1
On 06/08/2018 04:38 PM, York Sun wrote:
> Commit a52ff334c5b1 ("armv8: ls1046ardb: SPL size reduction") reduced
> image size for SPL. IFC was disabled. If PPA is loaded in SPL, MMU is
> enabled as a result. Removing IFC skips IFC region in the MMU table,
> causing later failure in RAM version U-boot when accessing CPLD
> through IFC. Only disable IFC if PPA is not enabled for SPL.
> 
> Signed-off-by: York Sun <york.sun@nxp.com>
> ---

Applied to fsl-qoriq, awaiting upstream.

York
diff mbox series

Patch

diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h
index c687c9e..2c083fc 100644
--- a/include/configs/ls1046a_common.h
+++ b/include/configs/ls1046a_common.h
@@ -19,7 +19,9 @@ 
 #if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_NAND_BOOT))
 #define SPL_NO_MMC
 #endif
-#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SD_BOOT))
+#if defined(CONFIG_SPL_BUILD)		&& \
+	defined(CONFIG_SD_BOOT)		&& \
+	!defined(CONFIG_SPL_FSL_LS_PPA)
 #define SPL_NO_IFC
 #endif