Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 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 <platform_def.h> |
| 10 | #include <xlat_tables_defs.h> |
| 11 | |
| 12 | MEMORY { |
| 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 | |
| 17 | SECTIONS |
| 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__ */ |