aboutsummaryrefslogtreecommitdiff
path: root/include/drivers
diff options
context:
space:
mode:
authorAlexei Fedorov <Alexei.Fedorov@arm.com>2020-07-29 15:16:36 +0100
committerAlexei Fedorov <Alexei.Fedorov@arm.com>2020-07-29 16:51:05 +0000
commitb29c350cdaebb11124f0e3db153dd973ac70cac5 (patch)
tree26954772b4a3b0ea9f16904bdde8bae55b7df257 /include/drivers
parentf3be7e28556971aebdc5bc88c0961f0b6bf56108 (diff)
downloadtrusted-firmware-a-b29c350cdaebb11124f0e3db153dd973ac70cac5.tar.gz
GIC-600: Fix MISRA-2012 defects
This patch fixes violation of Rules 10.1, 10.4, 11.9 and 13.2 reported by MISRA-2012 scan. Change-Id: Ibe9190cb0f26ae85d9a31db8e92fbd32f1740e25 Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Diffstat (limited to 'include/drivers')
-rw-r--r--include/drivers/arm/gicv3.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/drivers/arm/gicv3.h b/include/drivers/arm/gicv3.h
index 97b75b0dae..18d5b73e2f 100644
--- a/include/drivers/arm/gicv3.h
+++ b/include/drivers/arm/gicv3.h
@@ -223,10 +223,10 @@
#define TYPER_PPI_NUM_MASK U(0x1f)
/* GICR_IIDR bit definitions */
-#define IIDR_PRODUCT_ID_MASK 0xff000000
-#define IIDR_VARIANT_MASK 0x000f0000
-#define IIDR_REVISION_MASK 0x0000f000
-#define IIDR_IMPLEMENTER_MASK 0x00000fff
+#define IIDR_PRODUCT_ID_MASK U(0xff000000)
+#define IIDR_VARIANT_MASK U(0x000f0000)
+#define IIDR_REVISION_MASK U(0x0000f000)
+#define IIDR_IMPLEMENTER_MASK U(0x00000fff)
#define IIDR_MODEL_MASK (IIDR_PRODUCT_ID_MASK | \
IIDR_IMPLEMENTER_MASK)