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 | */ |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 6 | #ifndef RCAR_PLAT_LD_S |
| 7 | #define RCAR_PLAT_LD_S |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 8 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 9 | #include <lib/xlat_tables/xlat_tables_defs.h> |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 10 | #include <platform_def.h> |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 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 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 36 | #endif /* RCAR_PLAT_LD_S */ |