fix(xilinx): resolve misra rule 12.2 violations
Fixed below MISRA violation:
- MISRA Violation: MISRA-C:2012 R.12.2:
- The right hand operand of a shift operator shall lie in the range
zero to one less than the width in bits of the essential type of
the left hand operand.
- Fix:
- Type casted left operand to a larger width than shift.
Change-Id: I662ff57e52d1260e2f1a0de595f19a9143714892
Signed-off-by: Devanshi Chauhan Alpeshbhai <devanshi.chauhanalpeshbhai@amd.com>
diff --git a/plat/xilinx/common/include/pm_common.h b/plat/xilinx/common/include/pm_common.h
index 5162206..5e53ec6 100644
--- a/plat/xilinx/common/include/pm_common.h
+++ b/plat/xilinx/common/include/pm_common.h
@@ -31,7 +31,7 @@
#define TZ_VERSION_MAJOR 1U
#define TZ_VERSION_MINOR 0U
-#define TZ_VERSION ((TZ_VERSION_MAJOR << 16U) | \
+#define TZ_VERSION (((uint32_t)TZ_VERSION_MAJOR << 16U) | \
TZ_VERSION_MINOR)
/**