[PATCH v4 26/35] arm: mach-bcm283x: Map the ARM local MMIO as well
Simon Glass
sjg at chromium.org
Thu Sep 19 16:09:53 CEST 2024
On Wed, 18 Sept 2024 at 17:26, Patrick Rudolph
<patrick.rudolph at 9elements.com> wrote:
>
> Cover the "ARM local MMIO" range as well in the default MMU mapping in
> order to allow future code to access the GIC-400 without crashing. For
> now the GIC is not touched in u-boot, thus this change is a noop.
U-Boot
>
> See [1](BCM2711 ARM Peripherals) for reference.
>
> TEST: Enabled CONFIG_GICV2 and accessed the GIC in C code without crash.
>
> 1: https://datasheets.raspberrypi.com/bcm2711/bcm2711-peripherals.pdf
>
> Signed-off-by: Patrick Rudolph <patrick.rudolph at 9elements.com>
> Cc: Matthias Brugger <mbrugger at suse.com>
> Cc: Peter Robinson <pbrobinson at gmail.com>
> ---
> arch/arm/mach-bcm283x/init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
> diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c
> index 1b459707bc..7a1de22e0a 100644
> --- a/arch/arm/mach-bcm283x/init.c
> +++ b/arch/arm/mach-bcm283x/init.c
> @@ -50,7 +50,7 @@ static struct mm_region bcm2711_mem_map[MEM_MAP_MAX_ENTRIES] = {
> }, {
> .virt = 0xfc000000UL,
> .phys = 0xfc000000UL,
> - .size = 0x03800000UL,
> + .size = 0x04000000UL,
> .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
> PTE_BLOCK_NON_SHARE |
> PTE_BLOCK_PXN | PTE_BLOCK_UXN
> --
> 2.46.0
>
More information about the U-Boot
mailing list