Skip to content

Commit

Permalink
imx8m: drivers/ddr: Change padding of DDR4 and LPDDR4 DMEM firmware
Browse files Browse the repository at this point in the history
DMEM firmware files are padded to 16KB, wasting precious space
in processor internal RAM (TMU). The actual size of these files
is less than 2KB, so padding them to 4KB is sufficient.

This patch changes the expected size of DMEM firmware.
It relies on boot image creation tools to generate 4KB padding.
  • Loading branch information
Felix Radensky committed Jun 22, 2020
1 parent 3807100 commit 5f8d814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ddr/imx/imx8m/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
DECLARE_GLOBAL_DATA_PTR;

#define IMEM_LEN 32768 /* byte */
#define DMEM_LEN 16384 /* byte */
#define IMEM_2D_OFFSET 49152
#define DMEM_LEN 4096 /* byte */
#define IMEM_2D_OFFSET 36864

#define IMEM_OFFSET_ADDR 0x00050000
#define DMEM_OFFSET_ADDR 0x00054000
Expand Down

0 comments on commit 5f8d814

Please sign in to comment.