From f5872a00478dc99dc8199da03ef62fd297e7d110 Mon Sep 17 00:00:00 2001 From: Nishanth Menon Date: Fri, 26 Mar 2021 02:01:38 -0500 Subject: [PATCH] plat: ti: k3: board: Lets cast our macros Lets cast our macros to the right types and reduce a few MISRA warnings. Signed-off-by: Nishanth Menon Change-Id: I0dc06072713fe7c9440eca0635094c5f3ceb7f1c --- plat/ti/k3/board/generic/include/board_def.h | 10 +++++----- plat/ti/k3/board/lite/include/board_def.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/plat/ti/k3/board/generic/include/board_def.h b/plat/ti/k3/board/generic/include/board_def.h index 0d451167e..61753fb6b 100644 --- a/plat/ti/k3/board/generic/include/board_def.h +++ b/plat/ti/k3/board/generic/include/board_def.h @@ -19,14 +19,14 @@ * This RAM will be used for the bootloader including code, bss, and stacks. * It may need to be increased if BL31 grows in size. */ -#define SEC_SRAM_BASE 0x70000000 /* Base of MSMC SRAM */ -#define SEC_SRAM_SIZE 0x00020000 /* 128k */ +#define SEC_SRAM_BASE UL(0x70000000) /* Base of MSMC SRAM */ +#define SEC_SRAM_SIZE UL(0x00020000) /* 128k */ #define PLAT_MAX_OFF_STATE U(2) #define PLAT_MAX_RET_STATE U(1) -#define PLAT_PROC_START_ID 32 -#define PLAT_PROC_DEVICE_START_ID 202 -#define PLAT_CLUSTER_DEVICE_START_ID 198 +#define PLAT_PROC_START_ID U(32) +#define PLAT_PROC_DEVICE_START_ID U(202) +#define PLAT_CLUSTER_DEVICE_START_ID U(198) #endif /* BOARD_DEF_H */ diff --git a/plat/ti/k3/board/lite/include/board_def.h b/plat/ti/k3/board/lite/include/board_def.h index b363bea22..19587569c 100644 --- a/plat/ti/k3/board/lite/include/board_def.h +++ b/plat/ti/k3/board/lite/include/board_def.h @@ -21,14 +21,14 @@ * Current computation assumes data structures necessary for GIC and ARM for * a single cluster of 4 processor. */ -#define SEC_SRAM_BASE 0x70000000 /* Base of SRAM */ -#define SEC_SRAM_SIZE 0x0001c000 /* 112k */ +#define SEC_SRAM_BASE UL(0x70000000) /* Base of SRAM */ +#define SEC_SRAM_SIZE UL(0x0001c000) /* 112k */ #define PLAT_MAX_OFF_STATE U(2) #define PLAT_MAX_RET_STATE U(1) -#define PLAT_PROC_START_ID 32 -#define PLAT_PROC_DEVICE_START_ID 135 -#define PLAT_CLUSTER_DEVICE_START_ID 134 +#define PLAT_PROC_START_ID U(32) +#define PLAT_PROC_DEVICE_START_ID U(135) +#define PLAT_CLUSTER_DEVICE_START_ID U(134) #endif /* BOARD_DEF_H */