]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: allow CONFIG_GICV* not to be defined
authorStephen Warren <swarren@wwwdotorg.org>
Sat, 2 Apr 2016 03:14:14 +0000 (21:14 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 11 Apr 2016 16:44:38 +0000 (12:44 -0400)
There are ARM SoCs (such as the BCM2837) do not contain an ARM GIC. Fix
the ARMv8 CPU startup code to compile in this case.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv8/start.S

index 67b166c7fd463df009ef13df36b5acb777daaf70..dceedd7100ae5e97660addd3eb3df21f0b0f86e7 100644 (file)
@@ -202,14 +202,14 @@ WEAK(lowlevel_init)
        mov     x29, lr                 /* Save LR */
 
 #ifndef CONFIG_ARMV8_MULTIENTRY
+#if defined(CONFIG_GICV2) || defined(CONFIG_GICV3)
        /*
         * For single-entry systems the lowlevel init is very simple.
         */
        ldr     x0, =GICD_BASE
        bl      gic_init_secure
-
+#endif
 #else /* CONFIG_ARMV8_MULTIENTRY is set */
-
 #if defined(CONFIG_GICV2) || defined(CONFIG_GICV3)
        branch_if_slave x0, 1f
        ldr     x0, =GICD_BASE