]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
armv8: fsl-layerscape: Put SMMU config code in SMMU_BASE
authorPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Fri, 3 Jun 2016 13:11:26 +0000 (18:41 +0530)
committerYork Sun <york.sun@nxp.com>
Fri, 3 Jun 2016 21:12:49 +0000 (14:12 -0700)
It is not mandatory for Layerscape SoCs to have SMMU. SoCs like
LS1012A are layerscape SoC without SMMU IP.

So put SMMU configuration code under SMMU_BASE.

Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S

index 04831ca5bbc7611601d153f5a2d242398752fcf5..d743ffe6b555c7f83c90583fe26220e8c840e131 100644 (file)
@@ -94,11 +94,13 @@ ENTRY(lowlevel_init)
        bl      ccn504_set_qos
 #endif
 
+#ifdef SMMU_BASE
        /* Set the SMMU page size in the sACR register */
        ldr     x1, =SMMU_BASE
        ldr     w0, [x1, #0x10]
        orr     w0, w0, #1 << 16  /* set sACR.pagesize to indicate 64K page */
        str     w0, [x1, #0x10]
+#endif
 
        /* Initialize GIC Secure Bank Status */
 #if defined(CONFIG_GICV2) || defined(CONFIG_GICV3)