summaryrefslogtreecommitdiff
path: root/include/fsl_sec.h
diff options
context:
space:
mode:
authorAymen Sghaier <aymen.sghaier@nxp.com>2021-03-25 12:30:26 +0300
committerStefano Babic <sbabic@denx.de>2021-04-08 10:18:29 +0300
commitdde92e2d1501c0f4e7fc04e10b2a9614a1d63e32 (patch)
tree06f73769c5efa3ec40f2c0e6e4d5023a0745189a /include/fsl_sec.h
parent940d36d5d1d2dc2697b0b379712a3bf40a34e57a (diff)
downloadu-boot-dde92e2d1501c0f4e7fc04e10b2a9614a1d63e32.tar.xz
crypto: caam: Fix build warnings pointer casting
Enabling CAAM driver for i.MX8M platforms, a 64 bits architecture, lead to casting warnings: from/to pointer to/from integer with different size. This patch fix these warnings Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/fsl_sec.h')
-rw-r--r--include/fsl_sec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fsl_sec.h b/include/fsl_sec.h
index c531a14477..dca0dd0328 100644
--- a/include/fsl_sec.h
+++ b/include/fsl_sec.h
@@ -13,8 +13,8 @@
#include <asm/io.h>
#ifdef CONFIG_SYS_FSL_SEC_LE
-#define sec_in32(a) in_le32(a)
-#define sec_out32(a, v) out_le32(a, v)
+#define sec_in32(a) in_le32((ulong *)(ulong)a)
+#define sec_out32(a, v) out_le32((ulong *)(ulong)a, v)
#define sec_in16(a) in_le16(a)
#define sec_clrbits32 clrbits_le32
#define sec_setbits32 setbits_le32