Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mbrugger:branches:RPi5
u-boot
0022-rpi5-initial-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0022-rpi5-initial-support.patch of Package u-boot
From 407f8a481ba828ca918e32d4b455ceb096dbdf4f Mon Sep 17 00:00:00 2001 From: Dmitry Malkin <dmitry@bedrocksystems.com> Date: Tue, 21 Nov 2023 23:54:24 +0100 Subject: [PATCH] rpi5: initial support rpi5: add initial memory map for bcm2712 includes: * 1GB of RAM (from 4GB or 8GB total) * VPU memory interface * SOC range (main peripherals) Signed-off-by: Dmitry Malkin <dmitry@bedrocksystems.com> --- arch/arm/mach-bcm283x/init.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c index 183650a90a8..fa9427e101b 100644 --- a/arch/arm/mach-bcm283x/init.c +++ b/arch/arm/mach-bcm283x/init.c @@ -68,6 +68,34 @@ static struct mm_region bcm2711_mem_map[MEM_MAP_MAX_ENTRIES] = { } }; +static struct mm_region bcm2712_mem_map[MEM_MAP_MAX_ENTRIES] = { +{ + .virt = 0x00000000UL, + .phys = 0x00000000UL, + .size = 0x3f800000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE + }, { + .virt = 0x3f800000UL, + .phys = 0x3f800000UL, + .size = 0x00800000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | + PTE_BLOCK_NON_SHARE | + PTE_BLOCK_PXN | PTE_BLOCK_UXN + }, { + .virt = 0x107c000000UL, + .phys = 0x107c000000UL, + .size = 0x0004000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | + PTE_BLOCK_NON_SHARE | + PTE_BLOCK_PXN | PTE_BLOCK_UXN + }, { + /* List terminator */ + 0, + } +}; + + struct mm_region *mem_map = bcm283x_mem_map; /* @@ -78,6 +106,7 @@ static const struct udevice_id board_ids[] = { { .compatible = "brcm,bcm2837", .data = (ulong)&bcm283x_mem_map}, { .compatible = "brcm,bcm2838", .data = (ulong)&bcm2711_mem_map}, { .compatible = "brcm,bcm2711", .data = (ulong)&bcm2711_mem_map}, + { .compatible = "brcm,bcm2712", .data = (ulong)&bcm2712_mem_map}, { }, };
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor