summaryrefslogtreecommitdiff
path: root/plat/rockchip/common/aarch64/platform_common.c
diff options
context:
space:
mode:
authorCaesar Wang <wxt@rock-chips.com>2016-10-11 09:36:00 +0800
committerCaesar Wang <wxt@rock-chips.com>2016-10-25 03:28:53 +0800
commitec6935692a1ecd69473ca0f1990d8ed280dfca61 (patch)
tree88b19daa7951a23ed6c47415b8488270b44ca621 /plat/rockchip/common/aarch64/platform_common.c
parenta5a423100822c4b8c9982024c333460f0d019d82 (diff)
rockchip: optimize the link mechanism for SRAM code
Add the common extra.ld.S and customized rk3399.ld.S to extend to more features for different platforms. For example, we can add SRAM section and specific address to load there if we need it, and the common bl31.ld.S not need to be modified. Therefore, we can remove the unused codes which copying explicitly from the function pmusram_prepare(). It looks like more clear. Change-Id: Ibffa2da5e8e3d1d2fca80085ebb296ceb967fce8 Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Diffstat (limited to 'plat/rockchip/common/aarch64/platform_common.c')
-rw-r--r--plat/rockchip/common/aarch64/platform_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plat/rockchip/common/aarch64/platform_common.c b/plat/rockchip/common/aarch64/platform_common.c
index 40cd29e3..ff470163 100644
--- a/plat/rockchip/common/aarch64/platform_common.c
+++ b/plat/rockchip/common/aarch64/platform_common.c
@@ -68,6 +68,7 @@ static const int cci_map[] = {
coh_limit - coh_start, \
MT_DEVICE | MT_RW | MT_SECURE); \
mmap_add(plat_rk_mmap); \
+ rockchip_plat_sram_mmu_el##_el(); \
init_xlat_tables(); \
\
enable_mmu_el ## _el(0); \