[PATCH v1 1/5] arm: socfpga: agilex5: Add MMU mapping region

Chee, Tien Fong tien.fong.chee at altera.com
Mon Apr 21 08:32:12 CEST 2025



> -----Original Message-----
> From: Meng, Tingting <tingting.meng at altera.com>
> Sent: Monday, April 21, 2025 1:11 PM
> To: u-boot at lists.denx.de
> Cc: Marek Vasut <marex at denx.de>; Chee, Tien Fong
> <tien.fong.chee at altera.com>; Meng, Tingting <tingting.meng at altera.com>;
> Hea, Kok Kiang <kok.kiang.hea at altera.com>; Maniyam, Dinesh
> <dinesh.maniyam at altera.com>; Ng, Boon Khai <boon.khai.ng at altera.com>;
> Yuslaimi, Alif Zakuan <alif.zakuan.yuslaimi at altera.com>; Rosdi, Danish
> Ahmad <danish.ahmad.rosdi at altera.com>; Zamri, Muhammad Hazim Izzat
> <muhammad.hazim.izzat.zamri at altera.com>; Lim, Jit Loon
> <jit.loon.lim at altera.com>
> Subject: [PATCH v1 1/5] arm: socfpga: agilex5: Add MMU mapping region
> 
> From: Tingting Meng <tingting.meng at altera.com>
> 
> MMU mapping regions were added for the second and third DDR memory
> banks.
> 
> Signed-off-by: Tingting Meng <tingting.meng at altera.com>
> ---
>  arch/arm/mach-socfpga/mmu-arm64_s10.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm/mach-socfpga/mmu-arm64_s10.c b/arch/arm/mach-
> socfpga/mmu-arm64_s10.c
> index b8e40d9a788..1dc44ab4797 100644
> --- a/arch/arm/mach-socfpga/mmu-arm64_s10.c
> +++ b/arch/arm/mach-socfpga/mmu-arm64_s10.c
> @@ -57,6 +57,20 @@ static struct mm_region socfpga_agilex5_mem_map[]
> = {
>  		.size	= 0x80000000UL,
>  		.attrs	= PTE_BLOCK_MEMTYPE(MT_NORMAL) |
>  				PTE_BLOCK_INNER_SHARE,
> +	}, {
> +		/* MEM 30GB */
> +		.virt	= 0x880000000UL,
> +		.phys	= 0x880000000UL,
> +		.size	= 0x780000000UL,
> +		.attrs	= PTE_BLOCK_MEMTYPE(MT_NORMAL) |
> +				PTE_BLOCK_INNER_SHARE,
> +	}, {
> +		/* MEM 480GB */
> +		.virt	= 0x8800000000UL,
> +		.phys	= 0x8800000000UL,
> +		.size	= 0x7800000000UL,
> +		.attrs	= PTE_BLOCK_MEMTYPE(MT_NORMAL) |
> +				PTE_BLOCK_INNER_SHARE,
>  	}, {
>  		/* List terminator */
>  	},
> --
> 2.25.1

Reviewed-by: Tien Fong Chee <tien.fong.chee at altera.com>

Best regards,
Tien Fong



More information about the U-Boot mailing list