Skip to content

Commit

Permalink
imx93_a55: memory.h: Add ULL suffix on MU_BASE's definition
Browse files Browse the repository at this point in the history
Currently, the imx_mu_write() and imx_mu_read() functions
cast MU_BASE's value to a pointer. On 64-bit platforms
such as i.MX93 this leads to compilation warnings because
the value of MU_BASE is 32-bit while the pointers are
64-bit. As such, to solve this, add the ULL suffix to the
definition of MU_BASE to make it 64-bit.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 committed Nov 29, 2023
1 parent 1056500 commit c039acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/imx93_a55/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#define HEAPMEM_SIZE 0x00010000

/* SOF uses A side of the WAKEUPMIX MU */
#define MU_BASE 0x42430000
#define MU_BASE 0x42430000ULL

/* SOF uses EDMA2 (a.k.a EDMA4 in the TRM) */
#define EDMA2_BASE 0x42010000
Expand Down

0 comments on commit c039acd

Please sign in to comment.