summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/imx8m/lpddr4_init.c
diff options
context:
space:
mode:
authorAnshul Dalal <anshuld@ti.com>2025-06-18 18:12:09 +0530
committerTom Rini <trini@konsulko.com>2025-06-27 10:02:19 -0600
commitb77066d73261855af406422fbbe28a5d527f4dbf (patch)
treeade58874c92c618a27ab9e8ff31ac55a818c4c92 /drivers/ddr/imx/imx8m/lpddr4_init.c
parent4628730ee6c40864dbe475e4ca91e47a92f371fe (diff)
mach-k3: add dynamic mmu fixups for SPL stage
On platforms with spl splash support i.e CONFIG_VIDEO=y, the top of DDR is reserved for the framebuffer. The size for the framebuffer is computed at runtime by video_reserve. During the MMU configuration an entry corresponding to the framebuffer should be dynamically created to properly map the required space for the framebuffer. Therefore this patch adds k3_spl_mem_map_init which adds the required MMU entry by querying the gd after the framebuffer size has been computed in spl_reserve_video_from_ram_top. For non VIDEO=y platforms, the added k3_spl_mem_map_init function gets optimized out of the final binary so overall, the spl size is not impacted[1]. [1]: Tested on clang 19.1.7 and gcc 15.1.1 Signed-off-by: Anshul Dalal <anshuld@ti.com>
Diffstat (limited to 'drivers/ddr/imx/imx8m/lpddr4_init.c')
0 files changed, 0 insertions, 0 deletions