blob: 7aef324c4fb8eb8127b9a32a0dcbb9d81edf2cb7 [file] [log] [blame]
Jorge Ramirez-Ortizbf084dc2018-09-23 09:36:13 +02001/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00006#ifndef RCAR_PLAT_LD_S
7#define RCAR_PLAT_LD_S
Jorge Ramirez-Ortizbf084dc2018-09-23 09:36:13 +02008
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00009#include <lib/xlat_tables/xlat_tables_defs.h>
Jorge Ramirez-Ortizbf084dc2018-09-23 09:36:13 +020010#include <platform_def.h>
Jorge Ramirez-Ortizbf084dc2018-09-23 09:36:13 +020011
12MEMORY {
13 SRAM (rwx): ORIGIN = BL31_SRAM_BASE, LENGTH = DEVICE_SRAM_SIZE
14 PRAM (r): ORIGIN = BL31_LIMIT - DEVICE_SRAM_SIZE, LENGTH = DEVICE_SRAM_SIZE
15}
16
17SECTIONS
18{
19 /* SRAM_COPY is in PRAM */
20 . = BL31_LIMIT - DEVICE_SRAM_SIZE;
21 __SRAM_COPY_START__ = .;
22
23 .system_ram : {
24 /* system ram start is in SRAM */
25 __system_ram_start__ = .;
26 *(.system_ram*)
27 *iic_dvfs.o(.rodata)
28 __system_ram_end__ = .;
29 } >SRAM AT>PRAM
30
31 ASSERT(__BL31_END__ <= BL31_LIMIT - DEVICE_SRAM_SIZE,
32 "BL31 image too large - writing on top of SRAM!")
33
34}
35
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000036#endif /* RCAR_PLAT_LD_S */