Use the Kconfig generated CONFIG_HAS_GICV3 defines in the code base.
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
CFLAGS += #-marm -march= -mcpu= etc
-HAS_GICV3 := y
-
# Use only if calling $(LD) directly.
LDFLAGS_DIRECT += -EL
config ARM_64
def_bool y
depends on 64BIT
+ select HAS_GICV3
config ARM
def_bool y
menu "Architecture Features"
+# Select HAS_GICV3 if GICv3 is supported
+config HAS_GICV3
+ bool
+
endmenu
source "common/Kconfig"
obj-y += domain_build.o
obj-y += gic.o gic-v2.o
obj-$(CONFIG_ARM_32) += gic-hip04.o
-obj-$(HAS_GICV3) += gic-v3.o
+obj-$(CONFIG_HAS_GICV3) += gic-v3.o
obj-y += io.o
obj-y += irq.o
obj-y += kernel.o
CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
endif
-CFLAGS-$(HAS_GICV3) += -DHAS_GICV3
-
EARLY_PRINTK := n
ifeq ($(debug),y)
switch ( d->arch.vgic.version )
{
-#ifdef HAS_GICV3
+#ifdef CONFIG_HAS_GICV3
case GIC_V3:
if ( vgic_v3_init(d) )
return -ENODEV;
struct pending_irq *pending_irqs;
/* Base address for guest GIC */
paddr_t dbase; /* Distributor base address */
-#ifdef HAS_GICV3
+#ifdef CONFIG_HAS_GICV3
/* GIC V3 addressing */
/* List of contiguous occupied by the redistributors */
struct vgic_rdist_region {
#define DT_MATCH_GIC_V3 DT_MATCH_COMPATIBLE("arm,gic-v3")
-#ifdef HAS_GICV3
+#ifdef CONFIG_HAS_GICV3
/*
* GICv3 registers that needs to be saved/restored
*/
*/
union gic_state_data {
struct gic_v2 v2;
-#ifdef HAS_GICV3
+#ifdef CONFIG_HAS_GICV3
struct gic_v3 v3;
#endif
};
void vgic_v2_setup_hw(paddr_t dbase, paddr_t cbase, paddr_t csize,
paddr_t vbase, uint32_t aliased_offset);
-#ifdef HAS_GICV3
+#ifdef CONFIG_HAS_GICV3
struct rdist_region;
void vgic_v3_setup_hw(paddr_t dbase,
unsigned int nr_rdist_regions,