aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-snapdragon
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@linaro.org>2023-02-01 19:28:48 +0530
committerTom Rini <trini@konsulko.com>2023-02-10 12:50:00 -0500
commit881338a0c6686bbcf043275714d43080b746b17e (patch)
treeb91ac15f235d9773562b22d4b774e6b973f480c0 /arch/arm/mach-snapdragon
parent906bad3cc4f28a8d03f5f3558699cb5edf05fa0d (diff)
downloadu-boot-881338a0c6686bbcf043275714d43080b746b17e.zip
u-boot-881338a0c6686bbcf043275714d43080b746b17e.tar.gz
u-boot-881338a0c6686bbcf043275714d43080b746b17e.tar.bz2
qcs404: sysmap: Don't map reserved memory ranges
Currently u-boot maps whole of 1G RAM but there reserved memory ranges on QCS404 which are reserved for TrustZone, various firmware components etc. Any access to these reserved memory ranges causes a bus hang issue. So disable mapping for reserved memory ranges in u-boot. Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Diffstat (limited to 'arch/arm/mach-snapdragon')
-rw-r--r--arch/arm/mach-snapdragon/sysmap-qcs404.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-snapdragon/sysmap-qcs404.c b/arch/arm/mach-snapdragon/sysmap-qcs404.c
index b740903..64ca4ad 100644
--- a/arch/arm/mach-snapdragon/sysmap-qcs404.c
+++ b/arch/arm/mach-snapdragon/sysmap-qcs404.c
@@ -19,7 +19,19 @@ static struct mm_region qcs404_mem_map[] = {
}, {
.virt = 0x80000000UL, /* DDR */
.phys = 0x80000000UL, /* DDR */
- .size = 0x40000000UL,
+ .size = 0x05900000UL,
+ .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+ PTE_BLOCK_INNER_SHARE
+ }, {
+ .virt = 0x89600000UL, /* DDR */
+ .phys = 0x89600000UL, /* DDR */
+ .size = 0x162000000UL,
+ .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+ PTE_BLOCK_INNER_SHARE
+ }, {
+ .virt = 0xa0000000UL, /* DDR */
+ .phys = 0xa0000000UL, /* DDR */
+ .size = 0x20000000UL,
.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
PTE_BLOCK_INNER_SHARE
}, {