1/* 2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6#ifndef RCAR_PLAT_LD_S 7#define RCAR_PLAT_LD_S 8 9#include <lib/xlat_tables/xlat_tables_defs.h> 10#include <platform_def.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 36#endif /* RCAR_PLAT_LD_S */ 37