blob: 0461141fd55d51a4c860ba558cba486185e35ffc [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
9#include <platform_def.h>
10#include <xlat_tables_defs.h>
11
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 */