Files
u-boot/arch/arm/include/asm
Anshul Dalal fe2647f2a0 arm: armv8: mmu: add mem_map_from_dram_banks
For armv8, U-Boot uses a static map defined as 'mem_map' for configuring
the MMU as part of mmu_setup.

But since the exact configuration of memory banks might not be known at
build time, many platforms such as imx9, versal2 etc. utilize
gd->bd->bi_dram to configure the static map at runtime.

Therefore this patch adds a new API mem_map_from_dram_banks that
modifies the static map in a similar way. Allowing the caller to map all
dram banks by just passing the index to last entry in their mem_map and
it's length.

Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Anshul Dalal <anshuld@ti.com>
Tested-by: Wadim Egorov <w.egorov@phytec.de>
2025-10-22 12:05:52 -06:00
..
2022-07-08 17:57:33 -04:00
2018-09-25 21:49:18 -04:00
2023-08-17 16:39:20 -04:00
2021-09-24 14:30:46 -04:00
2024-07-15 12:12:16 -06:00
2020-01-24 11:19:52 -05:00
2022-01-19 18:11:34 +01:00
2023-01-31 15:46:39 +01:00
2025-03-10 07:41:16 +01:00
2022-04-01 16:56:53 -04:00
2023-05-31 14:05:34 -04:00
2021-09-30 08:08:56 -04:00