From f8e4ba0085cb8f0d54236825abe0487c733bb25d Mon Sep 17 00:00:00 2001 From: Ravi Kumar Bokka Date: Thu, 21 Oct 2021 20:14:09 +0530 Subject: [PATCH] soc/qualcomm/sc7280: define the aop symbols BUG=b:182963902 TEST=Validated on qualcomm sc7280 development board Signed-off-by: Ravi Kumar Bokka Change-Id: I62044f6fcb301c0ca35c42598f998913f9b94b95 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58528 Tested-by: build bot (Jenkins) Reviewed-by: Shelley Chen --- src/soc/qualcomm/sc7280/memlayout.ld | 5 +++-- src/soc/qualcomm/sc7280/soc.c | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/soc/qualcomm/sc7280/memlayout.ld b/src/soc/qualcomm/sc7280/memlayout.ld index 6398dbabea..620e5b55db 100644 --- a/src/soc/qualcomm/sc7280/memlayout.ld +++ b/src/soc/qualcomm/sc7280/memlayout.ld @@ -20,7 +20,8 @@ SECTIONS REGION(shrm, 0x09060000, 64K , 4K) AOPSRAM_START(0x0B000000) - REGION(aop, 0x0B000000, 0x100000, 4096) + REGION(aop_code_ram, 0x0B000000, 0x80000, 4096) + REGION(aop_data_ram, 0x0B0E0000, 0x20000, 4096) AOPSRAM_END(0x0B100000) SSRAM_START(0x14680000) @@ -51,7 +52,7 @@ SECTIONS DRAM_START(0x80000000) /* Various hardware/software subsystems make use of this area */ - REGION(dram_aop, 0x80800000, 0x040000, 0x1000) + REGION(dram_aop, 0x80800000, 0x080000, 0x1000) REGION(dram_soc, 0x80900000, 0x200000, 0x1000) BL31(0x80B00000, 1M) REGION(dram_wlan, 0x80C00000, 0xC00000, 0x1000) diff --git a/src/soc/qualcomm/sc7280/soc.c b/src/soc/qualcomm/sc7280/soc.c index c0fa32f691..96a4d5a2b2 100644 --- a/src/soc/qualcomm/sc7280/soc.c +++ b/src/soc/qualcomm/sc7280/soc.c @@ -1,6 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include #include #include @@ -16,6 +15,8 @@ static void soc_read_resources(struct device *dev) REGION_SIZE(dram_wlan) / KiB); reserved_ram_resource(dev, 3, (uintptr_t)_dram_wpss / KiB, REGION_SIZE(dram_wpss) / KiB); + reserved_ram_resource(dev, 4, (uintptr_t)_dram_aop / KiB, + REGION_SIZE(dram_aop) / KiB); } static void soc_init(struct device *dev)