[PATCH -next v8 05/11] arm: armv8: mmu: add mem_map_fix_dram_banks
    Dhruva Gole 
    d-gole at ti.com
       
    Wed Oct  8 15:25:42 CEST 2025
    
    
  
On Oct 06, 2025 at 13:58:43 +0530, Anshul Dalal wrote:
> 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_fix_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.
> 
> Signed-off-by: Anshul Dalal <anshuld at ti.com>
> Tested-by: Wadim Egorov <w.egorov at phytec.de>
Reviewed-by: Dhruva Gole <d-gole at ti.com>
-- 
Best regards,
Dhruva Gole
Texas Instruments Incorporated
    
    
More information about the U-Boot
mailing list