diff --git a/include/drivers/arm/gicv2.h b/include/drivers/arm/gicv2.h index ebcb216d6..b960194db 100644 --- a/include/drivers/arm/gicv2.h +++ b/include/drivers/arm/gicv2.h @@ -8,6 +8,7 @@ #define GICV2_H #include +#include /******************************************************************************* * GICv2 miscellaneous definitions @@ -30,7 +31,14 @@ #define GICD_SGIR U(0xF00) #define GICD_CPENDSGIR U(0xF10) #define GICD_SPENDSGIR U(0xF20) + +/* + * Some GICv2 implementations violate the specification and have this register + * at a different address. Allow overriding it in platform_def.h as workaround. + */ +#ifndef GICD_PIDR2_GICV2 #define GICD_PIDR2_GICV2 U(0xFE8) +#endif #define ITARGETSR_SHIFT 2 #define GIC_TARGET_CPU_MASK U(0xff)