[PATCH v3 1/7] rpi5: add initial memory map for bcm2712

Simon Glass sjg at chromium.org
Wed Dec 20 05:45:44 CET 2023


Hi Ivan,

On Mon, 18 Dec 2023 at 14:04, Ivan T. Ivanov <iivanov at suse.de> wrote:
>
> From: Dmitry Malkin <dmitry at bedrocksystems.com>
>
> includes:
> * 1GB of RAM (from 4GB or 8GB total)
> * VPU memory interface
> * AXI ranges (main peripherals)
>
> Signed-off-by: Dmitry Malkin <dmitry at bedrocksystems.com>
> Signed-off-by: Ivan T. Ivanov <iivanov at suse.de>
> ---
>  arch/arm/mach-bcm283x/init.c | 38 +++++++++++++++++++++++++++++++++++-
>  1 file changed, 37 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c
> index 7265faf6ce..af23b9711a 100644
> --- a/arch/arm/mach-bcm283x/init.c
> +++ b/arch/arm/mach-bcm283x/init.c
> @@ -19,7 +19,7 @@
>  #ifdef CONFIG_ARM64
>  #include <asm/armv8/mmu.h>
>
> -#define MEM_MAP_MAX_ENTRIES (4)
> +#define MEM_MAP_MAX_ENTRIES (5)
>
>  static struct mm_region bcm283x_mem_map[MEM_MAP_MAX_ENTRIES] = {
>         {
> @@ -68,6 +68,41 @@ static struct mm_region bcm2711_mem_map[MEM_MAP_MAX_ENTRIES] = {
>         }
>  };
>
> +static struct mm_region bcm2712_mem_map[MEM_MAP_MAX_ENTRIES] = {

Would it be possible to read these from the devicetree?

> +       {
> +               .virt = 0x00000000UL,
> +               .phys = 0x00000000UL,
> +               .size = 0x3f800000UL,
> +               .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
> +                        PTE_BLOCK_INNER_SHARE
> +       }, {

Regards,
Simon


More information about the U-Boot mailing list