On Sep 05, 2025 at 13:48:52 +0530, Anshul Dalal wrote:
> The K3 family of SoCs encompasses a wide variety of devices with varying

Nit: s/encompasses/encompass

> DDR configurations and memory carveout requirements, the current static
> memory map provides basic support for TI EVMs but does not scale well
> for newer platforms (such as AM62SiP with 512MiB of RAM).
> 
> Therefore this patch replaces the existing memory map with a minimal
> one, that could be more easily modified at runtime.
> 
> Signed-off-by: Anshul Dalal <[email protected]>
> ---
>  arch/arm/mach-k3/arm64/arm64-mmu.c | 32 ++++++++++--------------------
>  1 file changed, 10 insertions(+), 22 deletions(-)
> 
> diff --git a/arch/arm/mach-k3/arm64/arm64-mmu.c 
> b/arch/arm/mach-k3/arm64/arm64-mmu.c
> index 0e07b1b7ce0..79650a7e346 100644
> --- a/arch/arm/mach-k3/arm64/arm64-mmu.c
> +++ b/arch/arm/mach-k3/arm64/arm64-mmu.c
> @@ -11,42 +11,30 @@
>  
>  #include <asm/system.h>
>  #include <asm/armv8/mmu.h>
> +#include <linux/sizes.h>
>  
>  struct mm_region k3_mem_map[] = {
> -     {
> +     { /* SoC Peripherals */
>               .virt = 0x0UL,
>               .phys = 0x0UL,
>               .size = 0x80000000UL,
>               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
>                        PTE_BLOCK_NON_SHARE |
>                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
[...]

Reviewed-by: Dhruva Gole <[email protected]>

-- 
Best regards,
Dhruva Gole
Texas Instruments Incorporated

Reply via email to